Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

ng2-jalali-date-picker

Package Overview
Dependencies
Maintainers
1
Versions
38
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

ng2-jalali-date-picker - npm Package Compare versions

Comparing version 2.0.3 to 2.0.4

common/types/validator.type.d.ts

14

day-time-calendar/day-time-calendar.service.js

@@ -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 = [

2

package.json
{
"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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc