fixed Date.toLocaleString() (kuzmas)
This commit is contained in:
parent
af308614a8
commit
e1e65aca91
1 changed files with 1 additions and 1 deletions
|
@ -49472,7 +49472,7 @@ static JSValue get_date_string(JSContext *ctx, JSValueConst this_val,
|
||||||
break;
|
break;
|
||||||
case 3:
|
case 3:
|
||||||
pos += snprintf(buf + pos, sizeof(buf) - pos,
|
pos += snprintf(buf + pos, sizeof(buf) - pos,
|
||||||
"%02d:%02d:%02d %cM", (h + 1) % 12 - 1, m, s,
|
"%02d:%02d:%02d %cM", (h + 11) % 12 + 1, m, s,
|
||||||
(h < 12) ? 'A' : 'P');
|
(h < 12) ? 'A' : 'P');
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue