summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2022-03-29 11:12:40 +0200
committerGravatar Nikias Bassen2022-03-29 11:12:40 +0200
commit8e08d874e157e44bb94c99608fb1c5853631b6b4 (patch)
treeca2c19a9d57e42189907c47d6a5f718e686c6815 /tools
parent2c2ea7066a52f513dbb12b37da5a53642ac222f8 (diff)
downloadlibimobiledevice-8e08d874e157e44bb94c99608fb1c5853631b6b4.tar.gz
libimobiledevice-8e08d874e157e44bb94c99608fb1c5853631b6b4.tar.bz2
idevicedate: win32: Use %#d instead of %e for strftime format string
Diffstat (limited to 'tools')
-rw-r--r--tools/idevicedate.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/tools/idevicedate.c b/tools/idevicedate.c
index a9d78c1..505ed30 100644
--- a/tools/idevicedate.c
+++ b/tools/idevicedate.c
@@ -42,8 +42,12 @@
#ifdef _DATE_FMT
#define DATE_FMT_LANGINFO nl_langinfo (_DATE_FMT)
#else
+#ifdef WIN32
+#define DATE_FMT_LANGINFO "%a %b %#d %H:%M:%S %Z %Y"
+#else
#define DATE_FMT_LANGINFO "%a %b %e %H:%M:%S %Z %Y"
#endif
+#endif
static void print_usage(int argc, char **argv)
{