WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #39595, comment 2


Ignore:
Timestamp:
01/16/2017 01:48:40 AM (5 years ago)
Author:
mkormendy
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #39595, comment 2

    v1 v2  
     1Boiling down: yes, timestamps is one reason. But I'm also noticing that some plugins (major players: gravity forms, yoast seo, contact form DB) also don't store or report times correctly either because they expect the default PHP timezone to be either what is in `php.ini` -OR- what is stored in the WP Admin General Settings (wp_options: `gmt_offset` and `timezone_string`).
     2
    13I realized that this was likely in trac for a long time and maybe a revision may be in order.
    2 
    3 I was trying to be as verbose as possible, trust me, I could have gone WAY WAY more in depth, you should be grateful that this is the middle-ground you're getting ;-)
    4 
    5 Boiling down: yes, timestamps is one reason. But I'm also noticing that some plugins (major players: gravity forms, yoast seo, contact form DB) also don't store or report times correctly either because they expect the default PHP timezone to be either what is in `php.ini` -OR- what is stored in the WP Admin General Settings (wp_options: `gmt_offset` and `timezone_string`).
    64
    75The force in wp-settings.php just feels "hijacky" because it forces a timezone for the entire wordpress application versus just the methods where time is stored and reported.
    86
    9 Lastly, thanks for your honest opinion, I'd hate for you to have dishonest ones. :-) But, if operating system or server software developers didn't want you configuring the local time, they wouldn't have allowed options like SetEnv TZ or date.timezone.
    10 (I also realize just because they have these, it doesn't mean you should set these, but a reasonable amount of WP-based websites might not have a choice if the server is set to the local timezone and not UTC).
     7I have come across a slew of client servers (shared hosting, etc) where a reasonable amount of WP-based websites might not have a choice if the server is set to the local timezone for logging purposes and not UTC.