fix time issue

This commit is contained in:
dapan1121 2022-05-26 19:11:08 +08:00
parent 2aec15bd0a
commit 985fde7312
1 changed files with 4 additions and 3 deletions

View File

@ -184,9 +184,10 @@ int32_t parseTimezone(char* str, int64_t* tzOffset) {
i++;
while (str[i]) {
if ((str[i] >= '0' && str[i] <= '9') || str[i] == ':') {
++i;
int32_t j = i;
while (str[j]) {
if ((str[j] >= '0' && str[j] <= '9') || str[j] == ':') {
++j;
continue;
}