all repos — homestead @ 7f133fc8ba71ebced7eb14c13c98583f0b8dad87

Code for my website

calendar: convert times in any zone to one configured

Alan Pearce
commit

7f133fc8ba71ebced7eb14c13c98583f0b8dad87

parent

d23772dbd13ce7a82ad44ab89a805495eb6c86dd

1 file changed, 2 insertions(+), 2 deletions(-)

changed files
M internal/calendar/calendar.gointernal/calendar/calendar.go
@@ -173,8 +173,8 @@
bs = append(bs, &Busy{ FreeBusy: fb, Type: *b.FreeBusyType, - StartTime: Date{Time: st.Time}, - EndTime: Date{Time: et.Time}, + StartTime: Date{Time: st.In(c.opts.Timezone.Location)}, + EndTime: Date{Time: et.In(c.opts.Timezone.Location)}, }) } }