You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think if you want to make a time with seconds now you now need to do something like this:
crystal
struct Time
def self.from_cannon_io(io)
utc(seconds: Cannon.decode(io, Int64), nanoseconds: 0)
end
def self.to_cannon_io(io)
io.write_bytes self
io
end
end
Basically I think you need to specify a location now. The simplest way is to use UTC.
There might be others too.
The text was updated successfully, but these errors were encountered:
srcrip
added a commit
to srcrip/cannon
that referenced
this issue
Jun 7, 2020
I think if you want to make a time with seconds now you now need to do something like this:
crystal
Basically I think you need to specify a location now. The simplest way is to use UTC.
There might be others too.
The text was updated successfully, but these errors were encountered: