Rockbox.org home
release
dev builds
extras
themes manual
wiki
device status forums
mailing lists
IRC bugs
patches
dev guide



Rockbox mail archive

Subject: Re: apps settings.c,1.151,1.152 settings_menu.c,1.113,1.114
From: Henrik Backe (backe_at_swipnet.se)
Date: 2003-05-27


You just removed Daniel's previous patch for setting.c,
did you really mean to do that ?

../Henrik

"Markus Braun" <malle_at_users.sourceforge.net> wrote in message
news:E19KfQx-00069o-00_at_sc8-pr-cvs1.sourceforge.net...
> Update of /cvsroot/rockbox/apps
> In directory sc8-pr-cvs1:/tmp/cvs-serv22750/apps
>
> Modified Files:
> settings.c settings_menu.c
> Log Message:
> Fix for time/date setting after power loss (battery change).
> After a power loss, the time in the setting screen is set to 00:00
01/01/2003.
> Fixes Bug report #715081, #741391, #742672
>
>
> Index: settings.c
> ===================================================================
> RCS file: /cvsroot/rockbox/apps/settings.c,v
> retrieving revision 1.151
> retrieving revision 1.152
> diff -u -b -r1.151 -r1.152
> --- settings.c 27 May 2003 13:45:10 -0000 1.151
> +++ settings.c 27 May 2003 14:28:08 -0000 1.152
> @@ -1707,10 +1707,6 @@
> while ( !done ) {
> /* calculate the number of days in febuary */
> realyear = timedate[3] + 2000;
> -
> - if(realyear > 2030)
> - realyear = 2003; /* yeah, I believe this is now */
> -
> if((realyear % 4 == 0 && !(realyear % 100 == 0)) || realyear %
400 == 0)
> daysinmonth[1] = 29;
> else
> @@ -1765,8 +1761,8 @@
>
> lcd_getstringsize(buffer, &width, &prev_line_height);
>
> - snprintf(buffer, sizeof(buffer), "%s %04d %s %02d ",
> - str(dayname[timedate[6]]), realyear,
> + snprintf(buffer, sizeof(buffer), "%s 20%02d %s %02d ",
> + str(dayname[timedate[6]]), timedate[3],
> str(monthname[timedate[4] - 1]), timedate[5]);
> lcd_puts(0, 2, buffer);
>
>



Page was last modified "Jan 10 2012" The Rockbox Crew
aaa