January 1 showing as week 52 of the next year, not 53 of previous year.

BlakeLucchesi - October 6, 2009 - 20:15
Project:Weekly Archive by Node Type
Version:6.x-2.4
Component:Code
Category:bug report
Priority:normal
Assigned:Prometheus6
Status:closed
Description

This patch adjusts the sql query so that we get the proper year and week number for nodes posted on the first few days of january.

For reference: http://dev.mysql.com/doc/refman/5.1/en/date-and-time-functions.html#func...

Not sure if this works for postgres, I can't test that.

AttachmentSize
yeardate.patch1.51 KB

#1

Prometheus6 - October 13, 2009 - 15:12
Assigned to:Anonymous» Prometheus6

Thanks, I guess I still need to review this some more. The issue is getting PHP and MySQL to play nice together...they don't parse out the weeks the same way. If everyone in the world started their week on Monday, it would be easy.

#2

Prometheus6 - November 7, 2009 - 17:48
Status:needs review» fixed

Patch applied, thanks.

#3

System Message - November 21, 2009 - 17:50
Status:fixed» closed

Automatically closed -- issue fixed for 2 weeks with no activity.

 
 

Drupal is a registered trademark of Dries Buytaert.