This should be simple, but I spent hours going over documentation and still got nothing. I have this string:
var time = "2018-09-29 23:50:21"
This time is in UTC, even though it does not say so, I know it is.
I want to convert it to PST (America/Los_Angeles) with .tz
I tried:
moment(time).tz('America/Los_Angeles').format(MomentDefaults.DateTime);
I get "Sep 29, 2018, 23:50"
I tried MANY different combination that failed in different ways.
I want to be able to print "Sep 29, 2018, 16:50" which is time
in utc converted to pst.
What am I missing?