Skip to content

Commit be07931

Browse files
committed
fix #35 v1.0.5
1 parent b385e9e commit be07931

File tree

8 files changed

+13
-10
lines changed

8 files changed

+13
-10
lines changed

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/)
55
and this project adheres to [Semantic Versioning](http://semver.org/).
66

7+
## [1.0.5] - 2018-2-11
8+
- Fix [35](https://github.com/babakhani/PersianDate/issues/35)
9+
710
## [1.0.4] - 2018-1-27
811
- Fix [43](https://github.com/babakhani/PersianDate/issues/43)
912
- Fix [44](https://github.com/babakhani/PersianDate/issues/44)

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ More info at [wikipedia](http://en.wikipedia.org/wiki/Iranian_calendar)
1111

1212
[![npm version](https://badge.fury.io/js/persian-date.svg)](https://github.com/babakhani/persiandate)
1313
[![Bower version](https://badge.fury.io/bo/persian-date.svg)](https://github.com/babakhani/persiandate)
14-
[![Coverage Status](https://coveralls.io/repos/github/babakhani/PersianDate/badge.svg?branch=develop)](https://coveralls.io/github/babakhani/PersianDate?branch=develop)
14+
[![Coverage Status](https://coveralls.io/repos/github/babakhani/PersianDate/badge.svg?branch=master)](https://coveralls.io/github/babakhani/PersianDate?branch=master)
1515
[![Travis-ci](https://travis-ci.org/babakhani/PersianDate.svg?branch=master)](https://github.com/babakhani/persiandate)
1616

1717
<a class="github-button" href="https://github.com/babakhani/persiandate" data-icon="octicon-star" data-style="mega" data-count-href="/babakhani/persiandate/stargazers" data-count-api="/repos/babakhani/persiandate#stargazers_count" data-count-aria-label="# stargazers on GitHub" aria-label="Star babakhani/persiandate on GitHub">Star</a>

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "persian-date",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"main": [
55
"dist/<= pkg.version>/persian-date-<= pkg.version>.js"
66
],

dist/persian-date.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
/*!
22
*
3-
* persian-date - 1.0.4
3+
* persian-date - 1.0.5
44
* Reza Babakhani <[email protected]>
55
* http://babakhani.github.io/PersianWebToolkit/docs/persian-date/
66
* Under WTFPL license
@@ -262,7 +262,7 @@ var PersianDateClass = function () {
262262
this.leapYearMode = PersianDateClass.leapYearMode;
263263

264264
this.algorithms = new Algorithms(this);
265-
this.version = "1.0.4";
265+
this.version = "1.0.5";
266266
this._utcMode = false;
267267
if (this.localType !== 'fa') {
268268
this.formatPersian = false;
@@ -1736,7 +1736,7 @@ var PersianDateClass = function () {
17361736
key: 'unix',
17371737
value: function unix(timestamp) {
17381738
if (timestamp) {
1739-
return new PersianDateClass(timestamp * 1000).unix();
1739+
return new PersianDateClass(timestamp * 1000);
17401740
} else {
17411741
return new PersianDateClass().unix();
17421742
}

dist/persian-date.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "persian-date",
3-
"version": "1.0.4",
3+
"version": "1.0.5",
44
"license": "WTFPL",
55
"main": "dist/persian-date",
66
"author": "Reza Babakhani <[email protected]>",

src/pDate.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -605,7 +605,7 @@ class PersianDateClass {
605605

606606
static unix(timestamp) {
607607
if (timestamp) {
608-
return new PersianDateClass(timestamp * 1000).unix();
608+
return new PersianDateClass(timestamp * 1000);
609609
} else {
610610
return new PersianDateClass().unix();
611611
}

test/test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -650,7 +650,7 @@ describe('timezone', function () {
650650
assert.deepEqual(d.valueOf(), d.toDate().valueOf());
651651
});
652652
it('static unix method', function () {
653-
let a = pDate.unix(1491031614047).valueOf();
653+
let a = pDate.unix(1491031614047).unix();
654654
assert.deepEqual(a, 1491031614047);
655655
let b = pDate.unix();
656656
assert.ok(b);

0 commit comments

Comments
 (0)