mirror of
https://github.com/JuanCanham/HackMyResume.git
synced 2026-10-04 01:41:04 +01:00
Improve conversions and tests.
This commit is contained in:
1 parent
fe2247329e
commit
b38a7c1da2
8 files changed
+300
-33
No files matched your search
@@ -66,7 +66,10 @@ FluentDate/*.prototype*/.fmt = function( dt ) {
|
||||
}
|
||||
}
|
||||
else {
|
||||
if( dt.isValid && dt.isValid() )
|
||||
if( !dt ) {
|
||||
return moment();
|
||||
}
|
||||
else if( dt.isValid && dt.isValid() )
|
||||
return dt;
|
||||
throw 'Unknown date object encountered.';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user