Merge pull request #69 from stiang/master

Make strftime play nice with dates that have been extended by DateJS
This commit is contained in:
Sami Samhuri 2016-12-27 10:52:20 -08:00 committed by GitHub
commit 65aa4d5ea9

View file

@ -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;
}