I am trying to display a table showing meeting dates that I have saved as UTC in the local time. I think I know how to get the local timezone offset ??
var d = new Date()
However I can't figure out how to use that server-side to generate the ViewModel that I need to display the time-zone adjusted dates. My code looks like this:
public ActionResult AvailableMeetings()
var meetings = _context.Meetings
.Select(meeting => new TimeZoneAdjustedViewModel
Id = meeting.Id,
Start = DateTime.SpecifyKind(meeting.Start, DateTimeKind.Utc).AddMinutes(utcOffset),
Any help in accomplishing this would be greatly appreciated.