Fakultas Ilmu Komputer UI
Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Functional Programming
Diskuy-Frontend
Commits
4db64464
Commit
4db64464
authored
Feb 22, 2021
by
FadhilP
Browse files
add WIB to timestamp
parent
090ffe4d
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/helpers/time-util.js
View file @
4db64464
...
...
@@ -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
)
{}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment