From 5d56e54b7496d94a71ec2bac9329dc03de02c12d Mon Sep 17 00:00:00 2001 From: Scott Newcomer Date: Tue, 29 Jun 2021 23:29:43 -0500 Subject: [PATCH] woops --- addon/date.js | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/addon/date.js b/addon/date.js index 65ec2a9..579f776 100755 --- a/addon/date.js +++ b/addon/date.js @@ -107,16 +107,14 @@ export function parseDate(date, format, locale) { } // TODO: check other formats of invalid string date - "23/01/2014" return format - ? new Date(date) - : new Intl.DateTimeFormat(locale, format).format(); + ? new Intl.DateTimeFormat(locale, format).format() + : new Date(date); } function isValidDate(d) { return d instanceof Date && !isNaN(d); } -// WIP naive implementation -// TODO: timezone beware function isSame(date, comp) { return date.getTime() === comp.getTime(); }