Open ddssff opened 2 years ago
The Lift instances for UTCTime use fromEnum, which converts to Int. On a machine with 32 bit ints this means only DiffTimes of less than 3 milliseconds will convert correctly.
I suggest this:
instance Q.Lift UTCTime where lift t = [|read $(Q.lift (show t))|]
The Lift instances for UTCTime use fromEnum, which converts to Int. On a machine with 32 bit ints this means only DiffTimes of less than 3 milliseconds will convert correctly.