datetimejs
Advanced tools
Comparing version 0.3.2 to 0.3.3
@@ -564,3 +564,3 @@ // Generated by CoffeeScript 1.6.3 | ||
} | ||
d = new Date(meta.year, meta.month, meta.date, (meta.timeAdjust ? hour24(meta.hour) : meta.hour), meta.minute, meta.second, meta.millisecond); | ||
d = new Date(meta.year, meta.month, meta.date, (meta.timeAdjust ? hour24(meta.hour + 12) : meta.hour), meta.minute, meta.second, meta.millisecond); | ||
if (meta.timezone != null) { | ||
@@ -567,0 +567,0 @@ localOffset = d.getTimezoneOffset(); |
@@ -40,3 +40,3 @@ { | ||
}, | ||
"version" : "0.3.2" | ||
"version" : "0.3.3" | ||
} |
@@ -68,3 +68,3 @@ // Generated by CoffeeScript 1.6.3 | ||
}); | ||
return it('should parse decimal seconds', function() { | ||
it('should parse decimal seconds', function() { | ||
var d; | ||
@@ -75,2 +75,9 @@ d = datetime.strptime('2013-12-01 12:00:01.12', '%Y-%m-%d %H:%M:%f'); | ||
}); | ||
return it('should parse AM PM', function() { | ||
var d; | ||
d = datetime.strptime('2013-12-01 09:00 a.m.', '%Y-%m-%d %I:%M %p'); | ||
assert.equal(d.getHours(), 9); | ||
d = datetime.strptime('2013-12-01 09:00 p.m.', '%Y-%m-%d %I:%M %p'); | ||
return assert.equal(d.getHours(), 21); | ||
}); | ||
}); | ||
@@ -77,0 +84,0 @@ return describe('#isoparse()', function() { |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
345912
9803