summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorwtc%google.com <devnull@localhost>2008-01-12 05:09:26 +0000
committerwtc%google.com <devnull@localhost>2008-01-12 05:09:26 +0000
commitbf2b259bee1610b894e997c1d378d41f7d373c17 (patch)
tree32b3abcaad3e094178a193b6bcf189b0dd98aeb5
parent90f9daf8ed14055a04d64afd3e8c558a48be0afb (diff)
downloadnspr-hg-bf2b259bee1610b894e997c1d378d41f7d373c17.tar.gz
Bug 411926: do not use the %T format specifier for strftime (called by
PR_FormatTime) because %T is not portable. r=julien.pierre Modified files: cltsrv.c provider.c
-rw-r--r--pr/tests/cltsrv.c2
-rw-r--r--pr/tests/provider.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/pr/tests/cltsrv.c b/pr/tests/cltsrv.c
index 022c634a..a4011bc4 100644
--- a/pr/tests/cltsrv.c
+++ b/pr/tests/cltsrv.c
@@ -230,7 +230,7 @@ static void TimeOfDayMessage(const char *msg, PRThread* me)
char buffer[100];
PRExplodedTime tod;
PR_ExplodeTime(PR_Now(), PR_LocalTimeParameters, &tod);
- (void)PR_FormatTime(buffer, sizeof(buffer), "%T", &tod);
+ (void)PR_FormatTime(buffer, sizeof(buffer), "%H:%M:%S", &tod);
TEST_LOG(
cltsrv_log_file, TEST_LOG_ALWAYS,
diff --git a/pr/tests/provider.c b/pr/tests/provider.c
index ab3ff724..21d0d389 100644
--- a/pr/tests/provider.c
+++ b/pr/tests/provider.c
@@ -232,7 +232,7 @@ static void TimeOfDayMessage(const char *msg, PRThread* me)
char buffer[100];
PRExplodedTime tod;
PR_ExplodeTime(PR_Now(), PR_LocalTimeParameters, &tod);
- (void)PR_FormatTime(buffer, sizeof(buffer), "%T", &tod);
+ (void)PR_FormatTime(buffer, sizeof(buffer), "%H:%M:%S", &tod);
TEST_LOG(
cltsrv_log_file, TEST_LOG_ALWAYS,