ng2-jalali-date-picker
Advanced tools
Comparing version 2.0.3 to 2.0.4
@@ -35,7 +35,17 @@ "use strict"; | ||
var time = current ? current : moment(); | ||
return moment(day.format(DAY_FORMAT) + time.format(TIME_FORMAT), COMBINED_FORMAT); | ||
var parseLocale = moment.locale(); | ||
var locale = day.locale(); | ||
moment.locale(locale); | ||
var res = moment(day.format(DAY_FORMAT) + time.format(TIME_FORMAT), COMBINED_FORMAT); | ||
moment.locale(parseLocale); | ||
return res; | ||
}; | ||
DayTimeCalendarService.prototype.updateTime = function (current, time) { | ||
var day = current ? current : moment(); | ||
return moment(day.format(DAY_FORMAT) + time.format(TIME_FORMAT), COMBINED_FORMAT); | ||
var parseLocale = moment.locale(); | ||
var locale = day.locale(); | ||
moment.locale(locale); | ||
var res = moment(day.format(DAY_FORMAT) + time.format(TIME_FORMAT), COMBINED_FORMAT); | ||
moment.locale(parseLocale); | ||
return res; | ||
}; | ||
@@ -42,0 +52,0 @@ DayTimeCalendarService.decorators = [ |
{ | ||
"name": "ng2-jalali-date-picker", | ||
"author": "Mojtaba Zarei", | ||
"version": "2.0.3", | ||
"version": "2.0.4", | ||
"license": "MIT", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
484900
3214