File tree Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Expand file tree Collapse file tree 3 files changed +4
-4
lines changed Original file line number Diff line number Diff line change 1
1
"use strict" ;
2
2
exports . ISO8601_FORMAT = "yyyy-MM-dd hh:mm:ss.SSS" ;
3
- exports . ISO8601_WITH_TZ_OFFSET_FORMAT = "yyyy-MM-ddThh:mm:ssO " ;
3
+ exports . ISO8601_WITH_TZ_OFFSET_FORMAT = "yyyy-MM-ddThh:mm:ss.SSSO " ;
4
4
exports . DATETIME_FORMAT = "dd MM yyyy hh:mm:ss.SSS" ;
5
5
exports . ABSOLUTETIME_FORMAT = "hh:mm:ss.SSS" ;
6
6
Original file line number Diff line number Diff line change @@ -28,14 +28,14 @@ vows.describe('date_format').addBatch({
28
28
date . getTimezoneOffset = function ( ) { return - 660 ; } ;
29
29
assert . equal (
30
30
dateFormat . asString ( dateFormat . ISO8601_WITH_TZ_OFFSET_FORMAT , date ) ,
31
- "2010-01-11T14:31:30+1100"
31
+ "2010-01-11T14:31:30.005 +1100"
32
32
) ;
33
33
date = createFixedDate ( ) ;
34
34
date . setMinutes ( date . getMinutes ( ) - date . getTimezoneOffset ( ) + 120 ) ;
35
35
date . getTimezoneOffset = function ( ) { return 120 ; } ;
36
36
assert . equal (
37
37
dateFormat . asString ( dateFormat . ISO8601_WITH_TZ_OFFSET_FORMAT , date ) ,
38
- "2010-01-11T14:31:30-0200"
38
+ "2010-01-11T14:31:30.005 -0200"
39
39
) ;
40
40
41
41
} ,
Original file line number Diff line number Diff line change @@ -252,7 +252,7 @@ vows.describe('log4js layouts').addBatch({
252
252
test ( args , '%d' , '2010-12-05 14:18:30.045' ) ;
253
253
} ,
254
254
'%d should allow for format specification' : function ( args ) {
255
- test ( args , '%d{ISO8601_WITH_TZ_OFFSET}' , '2010-12-05T14:18:30-0000' ) ;
255
+ test ( args , '%d{ISO8601_WITH_TZ_OFFSET}' , '2010-12-05T14:18:30.045 -0000' ) ;
256
256
test ( args , '%d{ISO8601}' , '2010-12-05 14:18:30.045' ) ;
257
257
test ( args , '%d{ABSOLUTE}' , '14:18:30.045' ) ;
258
258
test ( args , '%d{DATE}' , '05 12 2010 14:18:30.045' ) ;
You can’t perform that action at this time.
0 commit comments