diff options
Diffstat (limited to 'apps/settings.c')
-rw-r--r-- | apps/settings.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/apps/settings.c b/apps/settings.c index a6d31341f8..368f05ff9e 100644 --- a/apps/settings.c +++ b/apps/settings.c | |||
@@ -1707,10 +1707,6 @@ bool set_time(char* string, int timedate[]) | |||
1707 | while ( !done ) { | 1707 | while ( !done ) { |
1708 | /* calculate the number of days in febuary */ | 1708 | /* calculate the number of days in febuary */ |
1709 | realyear = timedate[3] + 2000; | 1709 | realyear = timedate[3] + 2000; |
1710 | |||
1711 | if(realyear > 2030) | ||
1712 | realyear = 2003; /* yeah, I believe this is now */ | ||
1713 | |||
1714 | if((realyear % 4 == 0 && !(realyear % 100 == 0)) || realyear % 400 == 0) | 1710 | if((realyear % 4 == 0 && !(realyear % 100 == 0)) || realyear % 400 == 0) |
1715 | daysinmonth[1] = 29; | 1711 | daysinmonth[1] = 29; |
1716 | else | 1712 | else |
@@ -1765,8 +1761,8 @@ bool set_time(char* string, int timedate[]) | |||
1765 | 1761 | ||
1766 | lcd_getstringsize(buffer, &width, &prev_line_height); | 1762 | lcd_getstringsize(buffer, &width, &prev_line_height); |
1767 | 1763 | ||
1768 | snprintf(buffer, sizeof(buffer), "%s %04d %s %02d ", | 1764 | snprintf(buffer, sizeof(buffer), "%s 20%02d %s %02d ", |
1769 | str(dayname[timedate[6]]), realyear, | 1765 | str(dayname[timedate[6]]), timedate[3], |
1770 | str(monthname[timedate[4] - 1]), timedate[5]); | 1766 | str(monthname[timedate[4] - 1]), timedate[5]); |
1771 | lcd_puts(0, 2, buffer); | 1767 | lcd_puts(0, 2, buffer); |
1772 | 1768 | ||