aboutsummaryrefslogtreecommitdiffstats
path: root/widgets
diff options
context:
space:
mode:
authorJP Rosevear <jpr@ximian.com>2002-08-22 23:40:39 +0800
committerJP Rosevear <jpr@src.gnome.org>2002-08-22 23:40:39 +0800
commit8b36f00ff0585622b34b8352218302abb7626a3b (patch)
tree7020906a8adaa54b6ca4b3f8a1072a55299049ef /widgets
parent51e6a4e0ac56d46cf977d7f0e61f88e4c5134c22 (diff)
downloadgsoc2013-evolution-8b36f00ff0585622b34b8352218302abb7626a3b.tar.gz
gsoc2013-evolution-8b36f00ff0585622b34b8352218302abb7626a3b.tar.zst
gsoc2013-evolution-8b36f00ff0585622b34b8352218302abb7626a3b.zip
don't adjust for two digit dates here, the e_time_parse routines do that
2002-08-22 JP Rosevear <jpr@ximian.com> * e-dateedit.c (e_date_edit_parse_date): don't adjust for two digit dates here, the e_time_parse routines do that now svn path=/trunk/; revision=17834
Diffstat (limited to 'widgets')
-rw-r--r--widgets/meeting-time-sel/.cvsignore8
-rw-r--r--widgets/misc/ChangeLog5
-rw-r--r--widgets/misc/e-dateedit.c15
3 files changed, 5 insertions, 23 deletions
diff --git a/widgets/meeting-time-sel/.cvsignore b/widgets/meeting-time-sel/.cvsignore
deleted file mode 100644
index 50530fdf4e..0000000000
--- a/widgets/meeting-time-sel/.cvsignore
+++ /dev/null
@@ -1,8 +0,0 @@
-.deps
-.libs
-.pure
-Makefile
-Makefile.in
-*.lo
-*.la
-test-meeting-time-selector
diff --git a/widgets/misc/ChangeLog b/widgets/misc/ChangeLog
index 4cf470a49a..a83904bc7f 100644
--- a/widgets/misc/ChangeLog
+++ b/widgets/misc/ChangeLog
@@ -1,3 +1,8 @@
+2002-08-22 JP Rosevear <jpr@ximian.com>
+
+ * e-dateedit.c (e_date_edit_parse_date): don't adjust for two
+ digit dates here, the e_time_parse routines do that now
+
2002-08-06 Not Zed <NotZed@Ximian.com>
* e-filter-bar.c (menubar_activated): Set the query text into the
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;
}