aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--e-util/ChangeLog6
-rw-r--r--e-util/e-time-utils.c16
2 files changed, 14 insertions, 8 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 0084885485..504bbfefa2 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,9 @@
+2001-06-10 Damon Chaplin <damon@ximian.com>
+
+ * e-time-utils.c (e_time_parse_date_and_time):
+ (e_time_parse_time): got rid of '%n' at end of each format string
+ for strptime. I don't know how I managed to put them in there.
+
2001-05-31 Christopher James Lahey <clahey@ximian.com>
* Makefile.am (INCLUDES): Added db3 cflags.
diff --git a/e-util/e-time-utils.c b/e-util/e-time-utils.c
index 5c2496051c..130dc738a0 100644
--- a/e-util/e-time-utils.c
+++ b/e-util/e-time-utils.c
@@ -84,17 +84,17 @@ e_time_parse_date_and_time (const char *value,
/* strptime format for a time of day, in 12-hour format.
If it is not appropriate in the locale set to an empty string. */
- format[0] = _("%I:%M:%S %p%n");
+ format[0] = _("%I:%M:%S %p");
/* strptime format for a time of day, in 24-hour format. */
- format[1] = _("%H:%M:%S%n");
+ format[1] = _("%H:%M:%S");
/* strptime format for time of day, without seconds, 12-hour format.
If it is is not appropriate in the locale set to an empty string. */
- format[2] = _("%I:%M %p%n");
+ format[2] = _("%I:%M %p");
/* strptime format for time of day, without seconds 24-hour format. */
- format[3] = _("%H:%M%n");
+ format[3] = _("%H:%M");
for (i = 0; i < sizeof (format) / sizeof (format[0]); i++) {
memset (&time_tm, 0, sizeof (time_tm));
@@ -195,17 +195,17 @@ e_time_parse_time (const char *value,
/* strptime format for a time of day, in 12-hour format.
If it is not appropriate in the locale set to an empty string. */
- format[0] = _("%I:%M:%S %p%n");
+ format[0] = _("%I:%M:%S %p");
/* strptime format for a time of day, in 24-hour format. */
- format[1] = _("%H:%M:%S%n");
+ format[1] = _("%H:%M:%S");
/* strptime format for time of day, without seconds, 12-hour format.
If it is is not appropriate in the locale set to an empty string. */
- format[2] = _("%I:%M %p%n");
+ format[2] = _("%I:%M %p");
/* strptime format for time of day, without seconds 24-hour format. */
- format[3] = _("%H:%M%n");
+ format[3] = _("%H:%M");
for (i = 0; i < sizeof (format) / sizeof (format[0]); i++) {
memset (result, 0, sizeof (*result));