Skip to content

Commit

Permalink
Merge pull request #69 from stiang/master
Browse files Browse the repository at this point in the history
Make strftime play nice with dates that have been extended by DateJS
  • Loading branch information
samsonjs authored Dec 27, 2016
2 parents f8e5b11 + 84bad92 commit 65aa4d5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion strftime.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 65aa4d5

Please sign in to comment.