Skip to content

Commit 1a1bfca

Browse files
committed
[WIP] Pad the year to 4 digits
1 parent 5f8ad46 commit 1a1bfca

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/values/TimeValue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ var SELF = dv.TimeValue = util.inherit( 'DvTimeValue', PARENT, function( iso8601
200200
*/
201201
_getISO8601: function() {
202202
return ( ( this._time.year < 0 ) ? '-' : '+' )
203-
+ pad( this._time.year, 11 ) + '-'
203+
+ pad( this._time.year, 4 ) + '-'
204204
+ pad( this._time.month, 2 ) + '-'
205205
+ pad( this._time.day, 2 ) + 'T'
206206
+ pad( this._time.hour, 2 ) + ':'

0 commit comments

Comments
 (0)