aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDamon Chaplin <damon@ximian.com>2001-06-11 04:53:13 +0800
committerDamon Chaplin <damon@src.gnome.org>2001-06-11 04:53:13 +0800
commit56132926ca2d4f308a903937f16b0ecfa447b251 (patch)
tree98730c730c2da2062cab062023005090b9b7ad8e
parent50bd1c4507b341b4ec4700d164f7ea632c51fec8 (diff)
downloadgsoc2013-evolution-56132926ca2d4f308a903937f16b0ecfa447b251.tar.gz
gsoc2013-evolution-56132926ca2d4f308a903937f16b0ecfa447b251.tar.zst
gsoc2013-evolution-56132926ca2d4f308a903937f16b0ecfa447b251.zip
got rid of '%n' at end of each format string for strptime. I don't know
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. svn path=/trunk/; revision=10177
-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));