[wp-trac] Re: [WordPress Trac] #4856: Timezone issues
WordPress Trac
wp-trac at lists.automattic.com
Wed Aug 29 16:07:18 GMT 2007
#4856: Timezone issues
---------------------+------------------------------------------------------
Reporter: Rauchg | Owner: anonymous
Type: defect | Status: new
Priority: normal | Milestone: 2.2.3
Component: General | Version:
Severity: normal | Resolution:
Keywords: |
---------------------+------------------------------------------------------
Comment (by Otto42):
Also, this:
{{{
echo current_time('mysql');
echo date('Y-d-m H:i:s', current_time('timestamp'));
// will return
// 2007-08-28 21:58:05 (GMT -3: correct)
// 2007-28-08 18:58:05 (GMT -6!)
}}}
Shows that the time on your server is set wrong. current_time('mysql')
should have given you the UTC/GMT time, not GMT-3. Your "correct" mark is
actually incorrect.
Linux systems, to pick a normal unix system, should always have their
internal clocks set to UTC/GMT. The timezone is dealt with in the
operating system, the computer clock is running on UTC/GMT.
--
Ticket URL: <http://trac.wordpress.org/ticket/4856#comment:4>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list