jalali-moment
Advanced tools
Comparing version 2.1.1 to 2.1.2
@@ -594,3 +594,3 @@ | ||
if(!format && itsJalaliDate) { | ||
if(input && !format && itsJalaliDate) { | ||
input = input.replace("/","-"); | ||
@@ -792,2 +792,3 @@ if(/\d{4}\-\d{2}\-\d{2}/.test(input)) { | ||
}; | ||
// TODO: write test | ||
jMoment.fn.jDay = function (input) { | ||
@@ -797,3 +798,3 @@ if (typeof input === "number") { | ||
} else { | ||
return (moment.day() + 1) % 7; | ||
return (moment.fn.day.call(this) + 1) % 7; | ||
} | ||
@@ -800,0 +801,0 @@ }; |
{ | ||
"name": "jalali-moment", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Display, parse, manipulate ,validate and convert jalali (Persian, Khorshidi, Shamsi) date and time", | ||
@@ -5,0 +5,0 @@ "author": { |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
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
1572798
18059