't' and 'tt' date format now return the correct timezone.

[INTERPRETER]
* BUG: 't' and 'tt' date format now return the correct timezone.
This commit is contained in:
gambas 2018-05-25 12:17:30 +02:00
parent aebc6a0bda
commit e2a53d4a09

View File

@ -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);
}