Fakultas Ilmu Komputer UI

Commit 4db64464 authored by FadhilP's avatar FadhilP
Browse files

add WIB to timestamp

parent 090ffe4d
......@@ -4,7 +4,7 @@ function translate(time) {
try {
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')
const timeStamp = moment(date).format('hh:mm A [WIB]')
return `${fullDate}, ${timeStamp}`;
} catch (error) {}
......
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