Fix CurrentLocalTime format

This commit is contained in:
vdutta 2021-10-05 19:11:26 +05:30
parent 6b1eca2873
commit 7bda46a39a

View file

@ -1029,7 +1029,7 @@ int dm_time_format(time_t ts, char **dst)
if (t_tm == NULL)
return -1;
if(strftime(time_buf, sizeof(time_buf), "%Y-%m-%dT%H:%M:%SZ", t_tm) == 0)
if(strftime(time_buf, sizeof(time_buf), "%Y-%m-%dT%H:%M:%S%z", t_tm) == 0)
return -1;
*dst = dmstrdup(time_buf);