From 469a4b328c0dd7e98548768d17862625c6c02e7d Mon Sep 17 00:00:00 2001 From: James Peroulas Date: Tue, 28 Feb 2017 07:43:13 +0000 Subject: [PATCH] Changed time formatting to Y-M-D. --- wspr.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/wspr.cpp b/wspr.cpp index 647af3d..ca53bb7 100644 --- a/wspr.cpp +++ b/wspr.cpp @@ -1038,7 +1038,7 @@ void timeval_print(struct timeval *tv) { //printf("%ld.%06ld", tv->tv_sec, tv->tv_usec); curtime = tv->tv_sec; //strftime(buffer, 30, "%m-%d-%Y %T", localtime(&curtime)); - strftime(buffer, 30, "UTC %m-%d-%Y %T", gmtime(&curtime)); + strftime(buffer, 30, "UTC %Y-%m-%d %T", gmtime(&curtime)); printf("%s.%03ld", buffer, (tv->tv_usec+500)/1000); }