blob: 886b7a5bd828fae9d5699ceec821233a68d69b01 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
var assert = require('assert');
var dateFormat = require('./../lib/dateformat');
describe('isoUtcDateTime', function() {
it('should correctly format the timezone part', function(done) {
var actual = dateFormat('2014-06-02T13:23:21-08:00', 'isoUtcDateTime');
assert.strictEqual(actual, '2014-06-02T21:23:21Z');
done();
});
});
|