date-format 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
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-dd hh:mm:ss.SSS';
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "date-format",
3
- "version": "1.1.0",
3
+ "version": "1.2.0",
4
4
  "description": "Formatting Date objects as strings since 2013",
5
5
  "main": "lib/index.js",
6
6
  "repository": {
@@ -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-11 14:31:30.005');
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() {