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

Function convertTimezoneToLocal

test/angular/1.6/angular.js:1501–1506  ·  view source on GitHub ↗
(date, timezone, reverse)

Source from the content-addressed store, hash-verified

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

Callers 3

dateFilterFunction · 0.70
createDateInputTypeFunction · 0.70

Calls 2

timezoneToOffsetFunction · 0.70
addDateMinutesFunction · 0.70

Tested by

no test coverage detected