Paul on Nostr: TIL: JavaScript's Date is zero-indexed for months, so month 4 (April) is actually ...
TIL: JavaScript's Date is zero-indexed for months, so month 4 (April) is actually month 5 (May). I have just lost an hour trying to debug a problem because of this.
#JavaScript
Published at
2026-04-21 10:34:44 UTCEvent JSON
{
"id": "eff8b65fa29d7358674ad253b493f4dc247b6974a4a10a46ac824c6d7b629fdc",
"pubkey": "243f76efa4bc2f2813a262d6358cd8813c5a85f8f40ec6fd523d195e4f9bbd2c",
"created_at": 1776767684,
"kind": 1,
"tags": [
[
"t",
"javascript"
],
[
"proxy",
"https://social.xk7.net/@pwaring/116442246971547675",
"web"
],
[
"proxy",
"https://social.xk7.net/users/pwaring/statuses/116442246971547675",
"activitypub"
],
[
"L",
"pink.momostr"
],
[
"l",
"pink.momostr.activitypub:https://social.xk7.net/users/pwaring/statuses/116442246971547675",
"pink.momostr"
],
[
"-"
]
],
"content": "TIL: JavaScript's Date is zero-indexed for months, so month 4 (April) is actually month 5 (May). I have just lost an hour trying to debug a problem because of this.\n\n#JavaScript",
"sig": "847ed2e95c6db7f804312557c9acda3e1607c88f23d7a017a3fccac5c7e01f1253f906848236e5d6392980beb705fd23d004a7a22b56437250015285f9b08227"
}