Skip to content
This repository has been archived by the owner on Oct 15, 2019. It is now read-only.

Commit

Permalink
Release 1.2.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Zenedith committed Jan 27, 2017
1 parent dbfbd4b commit 46931d2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion lib/date.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
var moment = require('moment-timezone');
moment.tz.setDefault('Europe/Warsaw');

const parseIsoString = function parseIsoString(dateStr, formats = ["DD.MM.YYYY"]) {
const parseIsoString = function parseIsoString(dateStr, formats = ["DD.MM.YYYY", "YYYY-MM-DD"]) {
const date = moment(dateStr, formats);

if (date.isValid()) {
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vehicle-history-model",
"version": "1.2.0",
"version": "1.2.1",
"description": "Vehicle history model.",
"main": "./index.js",
"dependencies": {
Expand Down Expand Up @@ -47,6 +47,6 @@
"node": ">=6.0.0"
},
"readmeFilename": "README.md",
"_id": "vehicle-history-model@1.2.0",
"_from": "vehicle-history-model@^1.2.0"
"_id": "vehicle-history-model@1.2.1",
"_from": "vehicle-history-model@^1.2.1"
}

0 comments on commit 46931d2

Please sign in to comment.