[Pkg-running-devel] [antpm] 39/48: vs strftime doesn't recognize %T

Kristof Ralovich ralovich-guest at moszumanska.debian.org
Mon Aug 11 10:10:34 UTC 2014


This is an automated email from the git hooks/post-receive script.

ralovich-guest pushed a commit to branch upstream
in repository antpm.

commit 14e70586b80172e3b32cb2a4fd8f2c877eea92ac
Author: RALOVICH, Kristof <tade60 at freemail.hu>
Date:   Tue Apr 8 15:12:27 2014 +0200

    vs strftime doesn't recognize %T
---
 src/DeviceSettings.cpp | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/src/DeviceSettings.cpp b/src/DeviceSettings.cpp
index 2b6f68b..38fccc4 100644
--- a/src/DeviceSettings.cpp
+++ b/src/DeviceSettings.cpp
@@ -99,9 +99,13 @@ DeviceSettings::time2str(const std::time_t t)
   gmtime_s(&tm, &t);
 #endif
 
+#ifdef _MSC_VER
+  if(::strftime(outstr, sizeof(outstr), "%Y-%m-%dT%H:%M:%SZ", &tm) == 0)
+    return "";
+#else
   if(::strftime(outstr, sizeof(outstr), "%Y-%m-%dT%TZ", &tm) == 0)
     return "";
-
+#endif
   return outstr;
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-running/antpm.git



More information about the Pkg-running-devel mailing list