mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
Merge pull request #69 from stiang/master
Make strftime play nice with dates that have been extended by DateJS
This commit is contained in:
commit
65aa4d5ea9
1 changed files with 1 additions and 1 deletions
|
|
@ -74,7 +74,7 @@
|
||||||
adaptForwards(adaptedStrftime);
|
adaptForwards(adaptedStrftime);
|
||||||
function adaptedStrftime(fmt, d, locale) {
|
function adaptedStrftime(fmt, d, locale) {
|
||||||
// d and locale are optional, check if this is (format, locale)
|
// d and locale are optional, check if this is (format, locale)
|
||||||
if (d && d.days) {
|
if (d && d.days && !d.getTime) {
|
||||||
locale = d;
|
locale = d;
|
||||||
d = undefined;
|
d = undefined;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue