'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:
parent
aebc6a0bda
commit
e2a53d4a09
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user