tekul / jose-jwt

Haskell implementation of JOSE/JWT standards
BSD 3-Clause "New" or "Revised" License
35 stars 22 forks source link

Precision loss in IntDate serialisation #43

Open crypticmind opened 11 months ago

crypticmind commented 11 months ago

IntDate should take an Int instead of a POSIXTime or make it clear in the documentation about rounding.

ghci> fmap IntDate (fmap utcTimeToPOSIXSeconds getCurrentTime)
IntDate 1695687669.311274325s