]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: hlua: return wall-clock date, not internal date in core.now()
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Apr 2023 16:44:14 +0000 (18:44 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 27 Apr 2023 16:44:14 +0000 (18:44 +0200)
commitd2f61de8c244e71f7194af53c03c98dcb3d6219a
tree86628d6fbe447885e6611a40262f110e6bff03c3
parentbc3c4e85f04327736616cabda1f7eaa1ea62f471
BUG/MINOR: hlua: return wall-clock date, not internal date in core.now()

That's hopefully the last one affected by this. It was a bit trickier
because there's the promise in the doc that the date is monotonous, so
we continue to use now-start_time as the uptime value and add it to
start_date to get the current date. It was also emphasized by commit
28360dc ("MEDIUM: clock: force internal time to wrap early after boot"),
causing core.now() to return a date of Mar 20 on Apr 27. No backport is
needed.
src/hlua_fcn.c