Libbum / oration

A Rocket/Elm self hosted commenting system for static sites
MIT License
22 stars 5 forks source link

Move to Time.Date #53

Closed Libbum closed 7 years ago

Libbum commented 7 years ago

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 a Time.Date and displays the Date for each comment. We still need to extend the values to DateTimes or even ZonedDateTimes 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.

Libbum commented 7 years ago

Actually, the with-timezone example should be a great help.

Libbum commented 7 years ago

If we stay fuzzy, there is no need to get the timezone offset. Let's work with that.

Libbum commented 7 years ago

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.