date-format 1.1.0 → 1.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/index.js +1 -1
- package/package.json +1 -1
- package/test/date_format-test.js +1 -1
package/lib/index.js
CHANGED
@@ -71,7 +71,7 @@ function asString(format, date, timezoneOffset) {
|
|
71
71
|
|
72
72
|
module.exports = asString;
|
73
73
|
module.exports.asString = asString;
|
74
|
-
module.exports.ISO8601_FORMAT = 'yyyy-MM-
|
74
|
+
module.exports.ISO8601_FORMAT = 'yyyy-MM-ddThh:mm:ss.SSS';
|
75
75
|
module.exports.ISO8601_WITH_TZ_OFFSET_FORMAT = 'yyyy-MM-ddThh:mm:ss.SSSO';
|
76
76
|
module.exports.DATETIME_FORMAT = 'dd MM yyyy hh:mm:ss.SSS';
|
77
77
|
module.exports.ABSOLUTETIME_FORMAT = 'hh:mm:ss.SSS';
|
package/package.json
CHANGED
package/test/date_format-test.js
CHANGED
@@ -24,7 +24,7 @@ describe('date_format', function() {
|
|
24
24
|
});
|
25
25
|
|
26
26
|
it('should default to the ISO8601 format', function() {
|
27
|
-
dateFormat.asString(date).should.eql('2010-01-
|
27
|
+
dateFormat.asString(date).should.eql('2010-01-11T14:31:30.005');
|
28
28
|
});
|
29
29
|
|
30
30
|
it('should provide a ISO8601 with timezone offset format', function() {
|