using moment to get time in local time code example
Example 1: moment get timezone
var tz = moment.tz.guess();
Example 2: moment time format by country
import moment, { Moment } from 'moment'
moment(new Date(), moment.locale('id')).format('llll')