我使用的是PostgreSQL 8.4,服务器是linux,而linux的时区is'EDT‘不是'UTC’。PostgreSQL的配置使数据库的时区变为“UTC”。代码运行在JBoss9上。我有一个sql,select to_char(ts_entry.submitted_date, 'MM/DD/YYYY HH24:MM') as submitted_date_format from ts_entryconnection.cr
但我的时区有个问题。PHP date显示我的Date & Time 02/11/2018 05:26:18。但我的电脑时间是02/11/2018 09:26:18。我的时区是亚洲/卡拉奇。我在php.ini中更改了时区,在php.ini中更改了时区,如下所示; Defines the default timezone used by the date functions; htt