From 84bad921abc8d6f89e7149a9ec8d89f00d488237 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Stian=20Gryt=C3=B8yr?= Date: Thu, 31 Dec 2015 01:25:55 +0100 Subject: [PATCH] Make strftime play nice with dates that have been extended by DateJS --- strftime.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/strftime.js b/strftime.js index d34ad58..8afcd51 100644 --- a/strftime.js +++ b/strftime.js @@ -74,7 +74,7 @@ adaptForwards(adaptedStrftime); function adaptedStrftime(fmt, d, locale) { // d and locale are optional, check if this is (format, locale) - if (d && d.days) { + if (d && d.days && !d.getTime) { locale = d; d = undefined; }