Store dates as iso strings in database

ideally, the database schema should be TIMESTAMP
This commit is contained in:
Girish Ramakrishnan
2015-09-17 13:50:20 -07:00
parent 739db23514
commit c31a0f4e09
2 changed files with 4 additions and 4 deletions

View File

@@ -591,8 +591,8 @@ describe('Clients', function () {
email: 'some@email.com',
admin: true,
salt: 'somesalt',
createdAt: (new Date()).toUTCString(),
modifiedAt: (new Date()).toUTCString(),
createdAt: (new Date()).toISOString(),
modifiedAt: (new Date()).toISOString(),
resetToken: hat(256)
};