[wp-trac] [WordPress Trac] #28063: 'dayofweek' deviates from ISO-8601

WordPress Trac noreply at wordpress.org
Sat Nov 1 03:23:17 UTC 2014


#28063: 'dayofweek' deviates from ISO-8601
-------------------------+---------------------------
 Reporter:  mboynes      |       Owner:  boonebgorges
     Type:  enhancement  |      Status:  closed
 Priority:  normal       |   Milestone:  4.1
Component:  Query        |     Version:  3.7
 Severity:  normal       |  Resolution:  fixed
 Keywords:  needs-patch  |     Focuses:
-------------------------+---------------------------
Changes (by boonebgorges):

 * status:  accepted => closed
 * resolution:   => fixed


Comment:

 In [changeset:"30142"]:
 {{{
 #!CommitTicketReference repository="" revision="30142"
 Introduced `dayofweek_iso` time param for `WP_Date_Query`.

 The initial `dayofweek` param sets day 1 to Sunday. This is out of step
 with
 ISO standards, which calls Monday day 1. To maintain backward
 compatibility
 with the existing parameter, we introduce the new `dayofweek_iso` for the
 new, more compliant param.

 Props mboynes.
 Fixes #28063.
 }}}

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


More information about the wp-trac mailing list