mirror of
https://github.com/samsonjs/strftime.git
synced 2026-03-25 09:05:48 +00:00
Make strftime play nice with dates that have been extended by DateJS
This commit is contained in:
parent
a133ab1a4e
commit
84bad921ab
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue