Skip to content
This repository has been archived by the owner before Nov 9, 2022. It is now read-only.
Permalink
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
https://github.com/evancz/time-zone-database-proposal 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
Show file tree
Hide file tree
Showing 4 changed files with 0 additions and 317 deletions.
@@ -10,7 +10,6 @@
"Bitwise",
"Char",
"Color",
"Date",
"Debug",
"Dict",
"Json.Decode",

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.