avr-libc-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[avr-libc-commit] [2380] Corrected the date for determining final week n


From: Mike Rice
Subject: [avr-libc-commit] [2380] Corrected the date for determining final week number of previous year
Date: Tue, 30 Apr 2013 20:56:05 +0000

Revision: 2380
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2380
Author:   swfltek
Date:     2013-04-30 20:56:04 +0000 (Tue, 30 Apr 2013)
Log Message:
-----------
Corrected the date for determining final week number of previous year

Modified Paths:
--------------
    trunk/avr-libc/libc/time/strftime.c

Modified: trunk/avr-libc/libc/time/strftime.c
===================================================================
--- trunk/avr-libc/libc/time/strftime.c 2013-04-30 16:42:26 UTC (rev 2379)
+++ trunk/avr-libc/libc/time/strftime.c 2013-04-30 20:56:04 UTC (rev 2380)
@@ -264,7 +264,7 @@
                                        /* we need the week number of the final 
week of the previous year */
                                        tm_temp.tm_year = timeptr->tm_year - 1;
                                        tm_temp.tm_mon = 11;
-                                       tm_temp.tm_mday = 11;
+                                       tm_temp.tm_mday = 31;
                                        tm_temp.tm_hour = tm_temp.tm_min = 
tm_temp.tm_sec = 0;
                                        mktime(&tm_temp);
                                        w = iso_weeknum(&tm_temp);




reply via email to

[Prev in Thread] Current Thread [Next in Thread]