I'm on the Pacific Coast (PST) -8 hours (-420 minutes) from UTC and
var d = new Date();
var n = d.getTimezoneOffset();
returns 420. Shouldn't it return -420?
I'm trying to calculate a local time to save on the server by passing a local utcoffset. My server is in UTC time
so I wanted to do something like
group.DateCreatedLocalTime = DateTime.UtcNow.AddMinutes(viewModel.UtcOffset);
but if the time is 420 and not -420 then how will I know to add or subtract minutes from DateTime.UtcNow?