]> git.kaiwu.me - njs.git/commit
Date: fix UTC setters
authorDmitry Volyntsev <xeioex@nginx.com>
Sat, 12 Sep 2026 03:33:48 +0000 (20:33 -0700)
committerDmitry Volyntsev <xeioexception@gmail.com>
Mon, 14 Sep 2026 17:53:52 +0000 (10:53 -0700)
commit619c8203e892914940332e4b528bf65e310e20b3
treed105d29c0e26836b1b7904f5f7adb34b93ce2e31
parentfe25e5b3b09a832b707946e8c39a6d5c56d7fd82
Date: fix UTC setters

The Date setters always converted their result as local time.  Use the
setter's UTC flag instead.

Remove the intermediate range check in njs_make_date().  TimeClip already
checks the result after local-to-UTC conversion, which can move a value
across the valid time range boundary.
src/njs_date.c
src/test/njs_unit_test.c