[wp-trac] [WordPress Trac] #57409: Post date/time selector on a different timezone than of the server's

WordPress Trac noreply at wordpress.org
Mon Jan 2 10:15:28 UTC 2023


#57409: Post date/time selector on a different timezone than of the server's
--------------------------+------------------------------
 Reporter:  rfischmann    |       Owner:  (none)
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  Awaiting Review
Component:  Date/Time     |     Version:  6.1
 Severity:  normal        |  Resolution:
 Keywords:                |     Focuses:
--------------------------+------------------------------

Comment (by Rarst):

 >  if I try to schedule the post for a future date, the calendar always
 circles the previous day

 Gotcha, that does sound like a wrong behavior.

 > It's just how the editor behaves when the user is on a different
 timezone than of the server's.

 This is the part that I am trying to clarify here. To enumerate there are
 following time zones typically involved:
 1. Time zone as set in server's PHP settings (WP core should ignore it
 under normal operation).
 2. Time zone as set in WordPress settings (this should be used by WP in
 all cases).
 3. Time zone as set in user's browser (this should be ignore by WP core,
 but I think sometimes leaks into block editor part, it being front-end JS
 application rather than part of WP's historical PHP core).

 So when you say "user" and "server", which settings _exactly_ do you mean,
 where difference causes the observed error? Could you please provide exact
 example to reproduce? Like "my WordPress is set to time zone [value], my
 browser is set to time zone [value]".

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/57409#comment:3>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list