andrewplummer / Sugar

A Javascript library for working with native objects.
https://sugarjs.com/
MIT License
4.53k stars 305 forks source link

Date.create can't parse dots in time format #680

Open tumispro opened 2 years ago

tumispro commented 2 years ago

Example date string (from MacOS localisation settings): Saturday, 2 May 2015 at 23.52.26

This gives an Invalid Date, while 'Saturday, 2 May 2015 at 23:52:26' works fine.

I feel that dots in time format is a common format and should be supported.