Fakultas Ilmu Komputer UI

Commit 090ffe4d authored by FadhilP's avatar FadhilP
Browse files

fix timezone offset

parent 9732ff77
......@@ -2,7 +2,7 @@ import moment from 'moment';
function translate(time) {
try {
const date = moment(time).utcOffset(new Date().getTimezoneOffset() - 120)
const date = moment(time).utcOffset(new Date().getTimezoneOffset() - 180)
const fullDate = moment(date).format('DD MMMM YYYY')
const timeStamp = moment(date).format('hh:mm A')
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment