diff options
author | Fabrice Bellard <fabrice@bellard.org> | 2024-01-08 19:02:30 +0100 |
---|---|---|
committer | bptato <nincsnevem662@gmail.com> | 2024-01-11 18:52:04 +0100 |
commit | 92c9764e79b297f3b6cf948bd7bf29c34a8ae9c9 (patch) | |
tree | a28316a3da56dc407fc5c36d6fced8b1ac875e0e /lib | |
parent | 3853d2be3916b98d449e785071e370fe5b9a36ee (diff) | |
download | chawan-92c9764e79b297f3b6cf948bd7bf29c34a8ae9c9.tar.gz |
fixed Date.toLocaleString() (kuzmas)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/quickjs/quickjs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/quickjs/quickjs.c b/lib/quickjs/quickjs.c index d797f8fe..6d91ac94 100644 --- a/lib/quickjs/quickjs.c +++ b/lib/quickjs/quickjs.c @@ -49590,7 +49590,7 @@ static JSValue get_date_string(JSContext *ctx, JSValueConst this_val, break; case 3: 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'); break; } |