[wp-trac] [WordPress Trac] #38642: current_time('mysql') and current_time('Y-m-d H:i:s') are returning different values
WordPress Trac
noreply at wordpress.org
Thu Nov 3 04:25:51 UTC 2016
#38642: current_time('mysql') and current_time('Y-m-d H:i:s') are returning
different values
--------------------------+-----------------------------
Reporter: yeetien | Owner:
Type: defect (bug) | Status: new
Priority: normal | Milestone: Awaiting Review
Component: Date/Time | Version: 4.6.1
Severity: normal | Keywords:
Focuses: |
--------------------------+-----------------------------
current_time('mysql') is returning the local time correctly but
current_time('Y-m-d H:i:s') is not.
Maybe default case in [https://core.trac.wordpress.org/browser/trunk/src
/wp-includes/functions.php#L61 current_time()] should be using gmdate()
instead of date()?
--
Ticket URL: <https://core.trac.wordpress.org/ticket/38642>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list