Skip to content

Commit

Permalink
bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
weifeiyue committed Jul 25, 2018
1 parent cf2ebdc commit b6ac7f1
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion dist/vue-datepicker-local.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions dist/vue-datepicker-local.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "vue-datepicker-local",
"version": "1.0.16",
"version": "1.0.17",
"description": "A datepicker for Vue.js",
"main": "src/index.js",
"files": [
Expand Down
2 changes: 1 addition & 1 deletion src/VueDatepickerLocalCalendar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ export default {
month = time.month
}
const _time = new Date(year || $this.year, month || $this.month, $this.day, $this.hour, $this.minute, $this.second)
if ($this.left && _time > $this.start) {
if ($this.left && parseInt(_time.getTime() / 1000) > $this.end) {
this.$parent.dates[1] = _time
}
$this.$emit('input', _time)
Expand Down
2 changes: 1 addition & 1 deletion webpack.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ const path = require('path')
const webpack = require('webpack')
const ExtractTextPlugin = require('extract-text-webpack-plugin')
const banner =
'vue-datetime-local.js v1.0.16\n' +
'vue-datetime-local.js v1.0.17\n' +
'(c) 2017-' + new Date().getFullYear() + ' weifeiyue\n' +
'Released under the MIT License.'
module.exports = {
Expand Down

0 comments on commit b6ac7f1

Please sign in to comment.