[Bug] Fix timestamp in temporary message (#369)
* [Bug] Fix timestamp in temporary message * Fix tests
This commit is contained in:
parent
87fb1adab1
commit
4b677ae00e
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ import DateHelper from '../../../shared/helpers/DateHelper';
|
|||
const groupBy = require('lodash.groupby');
|
||||
|
||||
export const createTemporaryMessage = content => {
|
||||
const timestamp = new Date().getTime();
|
||||
const timestamp = new Date().getTime() / 1000;
|
||||
return {
|
||||
id: getUuid(),
|
||||
content,
|
||||
|
|
|
@ -24,7 +24,7 @@ describe('#actions', () => {
|
|||
id: '1111',
|
||||
content: 'hello',
|
||||
status: 'in_progress',
|
||||
created_at: 1466424490000,
|
||||
created_at: 1466424490,
|
||||
message_type: 0,
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue