Skip to content

Commit

Permalink
Dates are always stored in yyyy-mm-dd.
Browse files Browse the repository at this point in the history
The browser will display the date according to locale, but the values passed to
the input or retrieved form it are always in yyyy-mm-dd format.
  • Loading branch information
lddubeau committed Feb 5, 2019
1 parent 3385dda commit 65e24e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/prompt.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -851,12 +851,12 @@ describe("bootshine.prompt", function () {

describe("with default value", function () {
beforeEach(function () {
options.value = "17/08/2005";
options.value = "2005-08-17";
create();
});

it("has correct default value", function () {
expect(find("input[type='date']").val()).to.equal("17/08/2005");
expect(find("input[type='date']").val()).to.equal("2005-08-17");
});
});

Expand Down

0 comments on commit 65e24e8

Please sign in to comment.