Tengo un problema, vivo en Guayaquil Ecuador, ya cambie en el Postgresql.conf timezone='America/Guayaquil'. pero cuando me conecto con algun cliente y pongo select now() me obtiene la fecha adelantada por algunas horas 2010-09-15 XX:XX:XX.478303+00, cuando pongo show timezone me aparece gtm, si en el cliente (pgadmin, sql manager for postgres) hago set time zone 'America/Guayaquil' y luego pongo select now(), me aparece bien, pero eso lo hace solo en el cliente, y como tengo campos en los cuales la fecha es timestamp y cuyo valor es now(), me sale la fecha cambiada al crear registros, no entiendo porque si esta hecho el cambio en el archivo de postgresql.conf porque no sale?, dependerá tambien de la base? porque tengo en el mismo servidor algunas bases de datos, será que se puede cambiar el timezone por base?
Los inserts vienen desde el servidor web que esta ahi mismo, por lo que el cambio del *set time zone* no me sirve de nada porque no puedo estar haciendo eso previo a un insert. El servidor es opensuse con postgres 8.3 La base esta en /usr/local/pgsql/data Copio el fragmento del postgresql.conf, en el cual estan seteadas las opciones Cita: #------------------------------------------------------------------------------ # CLIENT CONNECTION DEFAULTS #------------------------------------------------------------------------------ # - Statement Behavior - #search_path = '"$user",public' # schema names #default_tablespace = '' # a tablespace name, '' uses the default #temp_tablespaces = '' # a list of tablespace names, '' uses # only default tablespace #check_function_bodies = on #default_transaction_isolation = 'read committed' #default_transaction_read_only = off #session_replication_role = 'origin' #statement_timeout = 0 # 0 is disabled #vacuum_freeze_min_age = 100000000 #xmlbinary = 'base64' #xmloption = 'content' # - Locale and Formatting - #datestyle = 'iso, dmy' #datestyle = 'SQL, DMY' datestyle = 'iso, dmy' timezone = 'America/Guayaquil' #timezone = 'default' #timezone = unknown # actually, defaults to TZ environment # setting #timezone_abbreviations = 'Default' # Select the set of available time zone # abbreviations. Currently, there are # Default # Australia # India # You can create your own file in # share/timezonesets/. #extra_float_digits = 0 # min -15, max 2 #client_encoding = sql_ascii # actually, defaults to database # encoding # These settings are initialized by initdb, but they can be changed. lc_messages = 'es_ES.UTF-8' # locale for system error message # strings lc_monetary = 'es_ES.UTF-8' # locale for monetary formatting lc_numeric = 'es_ES.UTF-8' # locale for number formatting lc_time = 'es_ES.UTF-8' # locale for time formatting # default configuration for text search default_text_search_config = 'pg_catalog.spanish' # - Other Defaults - #explain_pretty_print = on #dynamic_library_path = '$libdir' #local_preload_libraries = '' Gracias por la ayuda -- Max Lopez U. -- Max Lopez U.