From e2a53d4a096d2d059888369e2b95b99252b50b9f Mon Sep 17 00:00:00 2001 From: gambas Date: Fri, 25 May 2018 12:17:30 +0200 Subject: [PATCH] 't' and 'tt' date format now return the correct timezone. [INTERPRETER] * BUG: 't' and 'tt' date format now return the correct timezone. --- main/gbx/gbx_local.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main/gbx/gbx_local.c b/main/gbx/gbx_local.c index a9acae761..51dbd2ea3 100644 --- a/main/gbx/gbx_local.c +++ b/main/gbx/gbx_local.c @@ -1330,7 +1330,7 @@ static bool add_date_token(DATE_SERIAL *date, char *token, int count) if (count <= 2) { - time_t t = (time_t)0L; + time_t t = time(NULL); localtime_r(&t, &tm); add_strftime(count == 2 ? "%z" : "%Z", &tm); }