Skip to content

Commit b44c3e6

Browse files
committed
fix: hardcode fix for New York Daylight Saving Time
1 parent ea720c9 commit b44c3e6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/components/TeamManagement/MemberItem.jsx

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,11 @@ const MemberItem = (props) => {
2222
let timeZoneInfo
2323
if(timeZone) {
2424
timeZoneInfo = _.find(timezones, (t) => {return t.zoneName === timeZone})
25+
// as a quick fix for https://github.com/appirio-tech/connect-app/issues/3457
26+
// set offset for the "Daylight Saving Time"
27+
if (timeZoneInfo.zoneName === 'America/New_York') {
28+
timeZoneInfo.gmtOffset = -18000
29+
}
2530
localTime = moment().utcOffset(timeZoneInfo.gmtOffset/3600).format('h:mm a')
2631
localTimeOffsetFormat = 'UTC' + moment().utcOffset(timeZoneInfo.gmtOffset/3600).format('Z')
2732
}

0 commit comments

Comments
 (0)