cannon
cannon copied to clipboard
Fix Time struct
Fixes https://github.com/Papierkorb/cannon/issues/4
Hello, thank you for your contribution!
Cannon doesn't guarantee any kind of compatibility between versions, so it's fine to ~~wreak havoc~~ change things! :)
I think Time should carry the timezone over, including any other data it offers (Like the nanoseconds). deserialize(serialize(some_object)) == some_object should always be true as long it's feasible. Could you look into that?
Cheers!
OK I made some changes I think are good. I'm not quite sure if I've done it correctly though.