From eca19462001e044f657d7fb2021b5d8b32946e1a Mon Sep 17 00:00:00 2001 From: Sara Gowen Date: Fri, 26 Apr 2024 12:01:57 +0100 Subject: [PATCH] Make UI show local time Sessionize stores time in UTC - we want to show time as it really is --- .../Features/Home/Store/EventDataMapper.cs | 4 ++-- .../Features/Session/Store/SessionReducer.cs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Home/Store/EventDataMapper.cs b/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Home/Store/EventDataMapper.cs index 006e695..aff1af0 100644 --- a/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Home/Store/EventDataMapper.cs +++ b/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Home/Store/EventDataMapper.cs @@ -9,8 +9,8 @@ public static IImmutableList ToHomeStateModel(this EventDataResponseDT eventData.TimeSlots.Select(ts => new TimeSlot { Id = ts.Id, - From = ts.From, - To = ts.To, + From = ts.From.LocalDateTime, + To = ts.To.LocalDateTime, Info = ts.Info, Sessions = eventData.Sessions .Where(s => s.TimeSlotId == ts.Id) diff --git a/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Session/Store/SessionReducer.cs b/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Session/Store/SessionReducer.cs index 07d591b..2d9c632 100644 --- a/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Session/Store/SessionReducer.cs +++ b/PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Session/Store/SessionReducer.cs @@ -15,8 +15,8 @@ state with Detail = action.Session.FullDescription, SpeakerName = action.Session.Speaker, - From = action.TimeSlot.From, - To = action.TimeSlot.To, + From = action.TimeSlot.From.LocalDateTime, + To = action.TimeSlot.To.LocalDateTime, TrackName = action.Track.Name, RoomName = action.Track.RoomName,