MCPcopy
hub / github.com/angular-ui/ui-router / parseObservedDateValue

Function parseObservedDateValue

test/angular/1.6/angular.js:25817–25819  ·  view source on GitHub ↗
(val)

Source from the content-addressed store, hash-verified

25815 }
25816
25817 function parseObservedDateValue(val) {
25818 return isDefined(val) && !isDate(val) ? parseDateAndConvertTimeZoneToLocal(val) || undefined : val;
25819 }
25820
25821 function parseDateAndConvertTimeZoneToLocal(value, previousDate) {
25822 var timezone = ctrl.$options.getOption('timezone');

Callers 1

createDateInputTypeFunction · 0.70

Calls 3

isDefinedFunction · 0.70
isDateFunction · 0.70

Tested by

no test coverage detected