I am in Timezone A
and would like to print the current time in Timezone B. For Timezone B
, I have its utc_offset_b
, which is a value in seconds.
How can I do this using momentjs
?
Is this correct? (i'm running it in Timezone A
)
moment().utc().add(utc_offset, "second").format('MMM Do, h:mm:ss a')