MCPcopy Index your code
hub / github.com/angular-ui/ui-router / convertTimezoneToLocal

Function convertTimezoneToLocal

test/angular/1.7/angular.js:1498–1503  ·  view source on GitHub ↗
(date, timezone, reverse)

Source from the content-addressed store, hash-verified

1496
1497
1498function convertTimezoneToLocal(date, timezone, reverse) {
1499 reverse = reverse ? -1 : 1;
1500 var dateTimezoneOffset = date.getTimezoneOffset();
1501 var timezoneOffset = timezoneToOffset(timezone, dateTimezoneOffset);
1502 return addDateMinutes(date, reverse * (timezoneOffset - dateTimezoneOffset));
1503}
1504
1505
1506/**

Callers 3

dateFilterFunction · 0.70
createDateInputTypeFunction · 0.70

Calls 2

timezoneToOffsetFunction · 0.70
addDateMinutesFunction · 0.70

Tested by

no test coverage detected