diff options
-rw-r--r-- | src/time/strftime.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/time/strftime.c b/src/time/strftime.c index 708875ee..0a256970 100644 --- a/src/time/strftime.c +++ b/src/time/strftime.c @@ -181,7 +181,7 @@ const char *__strftime_fmt_1(char (*s)[100], size_t *l, int f, const struct tm * *l = 0; return ""; } - *l = snprintf(*s, sizeof *s, "%+.2d%.2d", + *l = snprintf(*s, sizeof *s, "%+.2ld%.2d", (tm->__tm_gmtoff)/3600, abs(tm->__tm_gmtoff%3600)/60); return *s; |