Created
May 29, 2019 05:23
-
-
Save fariswd/6b329cb9055ff20ee2c5ea6712a218b1 to your computer and use it in GitHub Desktop.
Time UTC & Time Jakarta
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import moment from 'moment' | |
import momenttz from 'moment-timezone' | |
const Timestamp = Date.now(); | |
const timeUTC = moment(Timestamp).utc() | |
const timeJakarta = momenttz.tz(Timestamp, "Asia/Jakarta").format() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment