mirror of
https://github.com/documize/community.git
synced 2025-07-19 21:29:42 +02:00
Ensure activity view works on UTC date formats
This commit is contained in:
parent
b40db1433e
commit
f2a903d054
2 changed files with 10 additions and 8 deletions
|
@ -15,7 +15,9 @@ export function formattedDate(params) {
|
|||
let format = params[1];
|
||||
if (is.undefined(format)) format = 'Do MMMM YYYY, HH:mm';
|
||||
|
||||
return moment(params[0]).format(format);
|
||||
return moment(params[0]).utc().format(format);
|
||||
// return moment(params[0]).format(format);
|
||||
// return moment(params[0]).local().format(format);
|
||||
}
|
||||
|
||||
export default helper(formattedDate);
|
|
@ -24,7 +24,7 @@ function formatDate(date, format) {
|
|||
}
|
||||
|
||||
function timeAgo(date) {
|
||||
return moment(new Date(date)).fromNow();
|
||||
return moment(new Date(date)).local().fromNow();
|
||||
}
|
||||
|
||||
function timeAgoUTC(date) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue