urbit/pkg
J ef1b125c3e zuse: fix time fix regression
Fixes #4598.

#4474 made the JSON time conversion no longer invertible, which caused
problems for chat, which uses message timestamp in milliseconds as a key
-- so chat would send a message with ms timestamp x, it would get
encoded as @da x, but then when it went back through the conversion to
milliseconds, it would often (not always) get encoded as x-1.

I still do not fully understand why this is -- and why it doesn't seem
to be a problem with seconds based on cursory testing -- but integer
multiplication and division generally do not invert. And adding a half a
millisecond to the input date before converting it resolves the issue
and makes the functions invertible.

I added a regression test, so hopefully the next courageous adventurer
who winds up here after wondering why +unm looks funny will have a
safeguard against some of the mistakes I made.
2021-03-12 20:06:10 +00:00
..
arvo zuse: fix time fix regression 2021-03-12 20:06:10 +00:00
docker-image build: Build docker image and publish to Docker Hub 2021-01-13 12:36:45 -05:00
ent build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
ge-additions build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
herb herb/lens: add utilites for import/export 2020-12-01 00:00:49 -08:00
hs king: fix bug Show Ipv4 2021-02-03 15:26:19 -08:00
interface Merge remote-tracking branch 'origin/master' into release/next-sys 2021-03-03 17:54:57 -08:00
libaes_siv build: rework all nix expressions to support hercules-ci builds 2020-10-27 13:55:49 +01:00
npm Merge pull request #4496 from tylershuster/api-parity 2021-02-25 20:30:57 -05:00
urbit king: address joe and ted 2021-02-03 14:50:23 -08:00