Skip to content

Commit 5e9fee5

Browse files
Sara Gowendynamictulip
authored andcommitted
Make UI show local time
Sessionize stores time in UTC - we want to show time as it really is
1 parent d87e1b6 commit 5e9fee5

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Home/Store/EventDataMapper.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@ public static IImmutableList<TimeSlot> ToHomeStateModel(this EventDataResponseDT
99
eventData.TimeSlots.Select(ts => new TimeSlot
1010
{
1111
Id = ts.Id,
12-
From = ts.From,
13-
To = ts.To,
12+
From = ts.From.LocalDateTime,
13+
To = ts.To.LocalDateTime,
1414
Info = ts.Info,
1515
Sessions = eventData.Sessions
1616
.Where(s => s.TimeSlotId == ts.Id)

PocketDDD.BlazorClient/PocketDDD.BlazorClient/Features/Session/Store/SessionReducer.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ state with
1515
Detail = action.Session.FullDescription,
1616
SpeakerName = action.Session.Speaker,
1717

18-
From = action.TimeSlot.From,
19-
To = action.TimeSlot.To,
18+
From = action.TimeSlot.From.LocalDateTime,
19+
To = action.TimeSlot.To.LocalDateTime,
2020

2121
TrackName = action.Track.Name,
2222
RoomName = action.Track.RoomName,

0 commit comments

Comments
 (0)