[wp-trac] [WordPress Trac] #52220: Weekly archives/week 53 incorrect crossing over a year change

WordPress Trac noreply at wordpress.org
Mon Jan 4 19:50:24 UTC 2021


#52220: Weekly archives/week 53 incorrect crossing over a year change
--------------------------+-----------------------------
 Reporter:  sugeneris     |      Owner:  (none)
     Type:  defect (bug)  |     Status:  new
 Priority:  normal        |  Milestone:  Awaiting Review
Component:  Date/Time     |    Version:  5.6
 Severity:  normal        |   Keywords:
  Focuses:                |
--------------------------+-----------------------------
 I run a site that publishes items every single day, and I regularly make
 use of its weekly archives.

 The relevant dates here(via https://www.epochconverter.com/weeks/2020)
 are:
 2020 week 52 is Dec 21 – Dec 27
 2020 week 53 is Dec 28 – Jan 3
 2021 week 1 is Jan 4 – Jan 10

 Instead, my weekly archives come out as:
 2020 week 52 is Dec 21 – Dec 27
 2020 week 53 is Dec 28 – **Dec 31**
 2021 week 1 is Jan 4 – [ongoing]
 [I can provide live URLs for these, just wasn't sure if self-linking was
 frowned upon.]

 There's three days in there that just…don't exist(in the archives; there
 ''are'' published entries).

 It's kind of a pain to find much information on weekly archives in the
 first place since they're not all that common in actual use and the search
 terms are broad but I'm currently trying to find someplace else that
 publishes often enough I can try feeding it a query string to see what
 happens.

 This replicates for previous year changes, ie. 2020 week 1 is Dec 30,
 2019–Jan 5, 2020 but the archive just starts at Jan 1 instead.
 Also replicates with all plugins disabled and using Twenty Twenty-One.

-- 
Ticket URL: <https://core.trac.wordpress.org/ticket/52220>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform


More information about the wp-trac mailing list