Skip to content
This repository was archived by the owner on Mar 9, 2022. It is now read-only.

Commit c35f2e7

Browse files
committed
Minor fixes
1 parent 2f974a2 commit c35f2e7

File tree

5 files changed

+10
-8
lines changed

5 files changed

+10
-8
lines changed

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ngComboDatePicker",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"authors": [
55
"jfmdev <[email protected]>"
66
],

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "ng-combo-date-picker",
3-
"version": "1.2.3",
3+
"version": "1.2.4",
44
"description": "An Angular directive to select dates using combo boxes",
55
"main": "source/ngComboDatePicker.js",
66
"scripts": {

readme.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ _Select dates with combo boxes_
77

88
[See the live demos and read the docs](http://jfmdev.github.io/ngComboDatePicker/ "ngComboDatePicker - Live demos and docs")
99

10+
> If you use the React library, you should check [reactComboDatePicker](https://github.com/jfmdev/reactComboDatePicker), a fork of this project that uses React instead of Angular.
11+
1012
Usage
1113
-----
1214

@@ -54,7 +56,7 @@ Name | Description
5456
`ngAttrsMonth` | A JSON object with the attributes to add to the `select` element for the month.
5557
`ngAttrsYear` | A JSON object with the attributes to add to the `select` element for the year.
5658
`ngYearOrder` | A _string_ indicating if the years must be sorted in "ascending" or "descending" order.
57-
`ngTimezone` | A _number_ indicating timezone to be used. By default the timezone of the client is used.
59+
`ngTimezone` | A _number_ indicating the timezone to be used when converting a string or an integer to a date. By default the timezone of the client is used.
5860
`ngPlaceholder` | A _string_ with the placeholders for the year, month and date combo boxes (in that order), separated by comma.
5961

6062
License

source/ngComboDatePicker.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* ngComboDatePicker v1.2.3
2+
* ngComboDatePicker v1.2.4
33
* http://github.com/jfmdev/ngComboDatePicker
44
* «Copyright 2015 Jose F. Maldonado»
55
* License: LGPLv3 (http://www.gnu.org/licenses/lgpl-3.0.html)
@@ -98,13 +98,13 @@ angular.module("ngComboDatePicker", [])
9898
// Initialize minimal and maximum values.
9999
$scope.minDate = parseDate($scope.ngMinDate, $scope.ngTimezone);
100100
if($scope.ngMinDate == null) {
101-
var now = adjustTimezone(new Date(), $scope.ngTimezone);
101+
var now = new Date();
102102
$scope.minDate = new Date(now.getFullYear()-100, now.getMonth(), now.getDate(),
103103
now.getHours(), now.getMinutes(), now.getSeconds(), now.getMilliseconds());
104104
}
105105
$scope.maxDate = parseDate($scope.ngMaxDate, $scope.ngTimezone);
106106
if($scope.maxDate == null) {
107-
$scope.maxDate = adjustTimezone(new Date(), $scope.ngTimezone);
107+
$scope.maxDate = new Date();
108108
}
109109

110110
// Verify if selected date is in the valid range.

source/ngComboDatePicker.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.

0 commit comments

Comments
 (0)