Closed Libbum closed 7 years ago
Actually, the with-timezone example should be a great help.
If we stay fuzzy, there is no need to get the timezone offset. Let's work with that.
71bfd94 introduces a cut down version of alpacaaa/elm-date-distance that works with Time.DateTime
. At some stage I should either make a new package for this, or figure out the best way to incorporate it upstream in a PR.
From the looks of it,
Core.Date
isn't going to exist soon enough and effort is moving to elm-community/elm-time.This is going to break a lot of things, so better start on it now.
Currently this drops the fuzzy time distances, any timezone offset and all time data, but gets us
Date.now
as aTime.Date
and displays theDate
for each comment. We still need to extend the values toDateTime
s or evenZonedDateTime
s if warranted, fix the UTCoffsets and probably re-implement the fuzzy time distances. The last portion might be useful to actually be a new package.