[wp-trac] Re: [WordPress Trac] #5927: Media library not working
WordPress Trac
wp-trac at lists.automattic.com
Sat Feb 23 16:32:24 GMT 2008
#5927: Media library not working
-----------------------------+----------------------------------------------
Reporter: jhodgdon | Owner: ryan
Type: defect | Status: reopened
Priority: normal | Milestone: 2.5
Component: Administration | Version: 2.5
Severity: critical | Resolution:
Keywords: media has-patch |
-----------------------------+----------------------------------------------
Comment (by jhodgdon):
I think the problem with the times is in wp-admin/edit-attachment-
rows.php. It is getting the post time using the get_post_time() function,
which gets it from the post table (which I think is set according to the
time zone setting in General Options).
Then it is comparing that time to the PHP function time(), which gets the
time according to the server where PHP is running, ignoring the time zone
settings. Hence the 1 hour discrepancy on my test setup, where the server
is an hour off my General Settings time zone setting.
Probably it would be best to compare GMT to GMT to figure out the relative
human time difference. I'll submit a quick patch.
--
Ticket URL: <http://trac.wordpress.org/ticket/5927#comment:5>
WordPress Trac <http://trac.wordpress.org/>
WordPress blogging software
More information about the wp-trac
mailing list