Skip to content
This repository has been archived by the owner. It is now read-only.
Browse files

There are many problems with window.Date so stop relying on it.

There are just a bunch of problems with relying on the JS Date
representation that I do not think can be solved with the JS
foundation. For example, the ISO 8601 parsing is impure for dates.

It appears that elm-community/elm-time provides similar functionality,
but in a pure way that takes the IANA time zone database into account.

The pure approach could be improved with something like down the line.

Unclear if we should stick with this choice, but I would like to
explore alternatives first.
  • Loading branch information
evancz committed Jul 6, 2017
1 parent fb79e28 commit a892fdf705f83523752c5469384e9880fbdfe3b1
Showing with 0 additions and 317 deletions.
  1. +0 −1 elm.json
  2. +0 −194 src/Date.elm
  3. +0 −117 src/Elm/Kernel/Date.js
  4. +0 −5 src/Elm/Kernel/Debug.js
@@ -10,7 +10,6 @@

This file was deleted.

This file was deleted.

@@ -146,11 +146,6 @@ function _Debug_toString_dev(v)

if (type === 'object')
if (v instanceof Date)
return '<' + v.toString() + '>';

if (v.elm_web_socket)
return '<websocket>';

0 comments on commit a892fdf

Please sign in to comment.
You can’t perform that action at this time.