Make strftime play nice with dates that have been extended by DateJS

This commit is contained in:
Stian Grytøyr 2015-12-31 01:25:55 +01:00
parent a133ab1a4e
commit 84bad921ab

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