Added CDate component !

This commit is contained in:
Paolo Arena
2019-04-05 16:16:29 +02:00
parent fe600f40a6
commit 7a55fa7f68
26 changed files with 421 additions and 40910 deletions

View File

@@ -5,6 +5,7 @@ import { GlobalStore } from '@store'
import { IPost } from '../../../model/index'
import './messagePopover.scss'
import { tools } from '@src/store/Modules/tools'
@Component({
})
@@ -27,7 +28,7 @@ export default class MessagePopover extends Vue {
public randomDate(): Date {
let myval = Math.floor(Math.random() * 10000000000)
return new Date(new Date().valueOf() - myval)
return new Date(tools.getTimestampsNow() - myval)
}
public randomAvatarUrl() {