diff options
author | Lukas Fleischer <calcurse@cryptocrack.de> | 2015-01-19 23:47:55 +0100 |
---|---|---|
committer | Lukas Fleischer <calcurse@cryptocrack.de> | 2015-02-07 09:52:36 +0100 |
commit | a12833ec086d5e0d35eac04f7e3c386879beccc0 (patch) | |
tree | 6e652ed622cacf90adfe7e7d577947249dbca3f5 /src/ui-calendar.c | |
parent | 4fd8f0b11e565587f349b910b3abfd16b611e767 (diff) | |
download | calcurse-a12833ec086d5e0d35eac04f7e3c386879beccc0.zip |
Handle dates past January 19th, 2038
Try to support dates past year 2038 on systems with 64-bit time_t.
Signed-off-by: Lukas Fleischer <calcurse@cryptocrack.de>
Diffstat (limited to 'src/ui-calendar.c')
-rw-r--r-- | src/ui-calendar.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/ui-calendar.c b/src/ui-calendar.c index d72f71a..4216903 100644 --- a/src/ui-calendar.c +++ b/src/ui-calendar.c @@ -630,9 +630,7 @@ void ui_calendar_change_day(int datefmt) char *outstr; int dday, dmonth, dyear; int wrong_day = 1; - const char *mesg_line1 = - _("The day you entered is not valid " - "(should be between 01/01/1902 and 12/31/2037)"); + const char *mesg_line1 = _("The day you entered is not valid"); const char *mesg_line2 = _("Press [ENTER] to continue"); const char *request_date = _("Enter the day to go to [ENTER for today] : %s"); @@ -739,10 +737,6 @@ void ui_calendar_move(enum move move, int count) t.tm_mday = 1; t.tm_mon = 0; t.tm_year = 2; - } else if (t.tm_year > 137) { - t.tm_mday = 31; - t.tm_mon = 11; - t.tm_year = 137; } slctd_day.dd = t.tm_mday; |