[hamradio-commits] [dump1090] 87/389: Changed the date separator in SBS-1
Matthew Ernisse
mernisse-guest at moszumanska.debian.org
Wed Nov 5 00:19:43 UTC 2014
This is an automated email from the git hooks/post-receive script.
mernisse-guest pushed a commit to branch master
in repository dump1090.
commit 444b1cf3a29c5b0a317f1a4b4145719118681606
Author: Malcolm Robb <Support at ATTAvionics.com>
Date: Sat Apr 13 02:09:57 2013 +0100
Changed the date separator in SBS-1
Changed the separator from \ to /
---
dump1090.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dump1090.c b/dump1090.c
index 364c16f..d9139cf 100644
--- a/dump1090.c
+++ b/dump1090.c
@@ -2254,13 +2254,13 @@ void modesSendSBSOutput(struct modesMessage *mm, struct aircraft *a) {
if (epocTime.millitm > 999) // if we've caused an overflow into the next second...
{epocTime.millitm -= 1000; epocTime.time ++;} // ..correct the overflow
stTime = *localtime(&epocTime.time); // convert the time to year, month day, hours, min, sec
- pCommon += sprintf(pCommon, "%04d\\%02d\\%02d,", (stTime.tm_year+1900),(stTime.tm_mon+1), stTime.tm_mday);
+ pCommon += sprintf(pCommon, "%04d/%02d/%02d,", (stTime.tm_year+1900),(stTime.tm_mon+1), stTime.tm_mday);
pCommon += sprintf(pCommon, "%02d:%02d:%02d.%03d,", stTime.tm_hour, stTime.tm_min, stTime.tm_sec, epocTime.millitm);
// Do the current time and date now
ftime(&epocTime); // get the current system time & date
stTime = *localtime(&epocTime.time); // convert the time to year, month day, hours, min, sec
- pCommon += sprintf(pCommon, "%04d\\%02d\\%02d,", (stTime.tm_year+1900),(stTime.tm_mon+1), stTime.tm_mday);
+ pCommon += sprintf(pCommon, "%04d/%02d/%02d,", (stTime.tm_year+1900),(stTime.tm_mon+1), stTime.tm_mday);
pCommon += sprintf(pCommon, "%02d:%02d:%02d.%03d", stTime.tm_hour, stTime.tm_min, stTime.tm_sec, epocTime.millitm);
if (mm->msgtype == 0) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-hamradio/dump1090.git
More information about the pkg-hamradio-commits
mailing list