test_isoutcdatetime.js 344 B

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