Skip to content

Commit 90e062e

Browse files
committed
add request to update incident timezone
1 parent ff15726 commit 90e062e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

service/incident_service.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -126,8 +126,8 @@ func UpdateIncidentDateByMeeting(meeting string, t time.Time, updateTimeZone boo
126126
tz2 = t2.Location()
127127
}
128128

129-
incident.End = time.Date(t.Year(), t.Month(), t.Day(), t1.Hour(), t1.Minute(), t1.Second(), t1.Nanosecond(), tz1)
130-
incident.Start = time.Date(t.Year(), t.Month(), t.Day(), t2.Hour(), t2.Minute(), t2.Second(), t2.Nanosecond(), tz2)
129+
incident.End = time.Date(t1.Year(), t1.Month(), t1.Day(), t1.Hour(), t1.Minute(), t1.Second(), t1.Nanosecond(), tz1)
130+
incident.Start = time.Date(t2.Year(), t2.Month(), t2.Day(), t2.Hour(), t2.Minute(), t2.Second(), t2.Nanosecond(), tz2)
131131

132132
saved, err := UpdateIncident(incident)
133133
if err != nil {

0 commit comments

Comments
 (0)