diff options
Diffstat (limited to 'widgets/misc/e-dateedit.c')
-rw-r--r-- | widgets/misc/e-dateedit.c | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/widgets/misc/e-dateedit.c b/widgets/misc/e-dateedit.c index e8f6e74aea..5a99e3e8fc 100644 --- a/widgets/misc/e-dateedit.c +++ b/widgets/misc/e-dateedit.c @@ -1434,24 +1434,9 @@ e_date_edit_parse_date (EDateEdit *dedit, gchar *date_text, struct tm *date_tm) { - struct tm *tmp_tm; - time_t t; - if (e_time_parse_date (date_text, date_tm) != E_TIME_PARSE_OK) return FALSE; - /* If the user entered a 2-digit year we use the current century. */ - if (date_tm->tm_year < 0) { - t = time (NULL); - tmp_tm = localtime (&t); - - /* This should convert it into a value from 0 to 99. */ - date_tm->tm_year += 1900; - - /* Now add on the century. */ - date_tm->tm_year += tmp_tm->tm_year - (tmp_tm->tm_year % 100); - } - return TRUE; } |