Skip to content

Commit

Permalink
Merge pull request #453 from Eonasdan/development
Browse files Browse the repository at this point in the history
fix for issue #451
  • Loading branch information
nikoskalogridis committed Aug 4, 2014
2 parents 428846c + 9aa2ca8 commit 88bb292
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 14 deletions.
2 changes: 1 addition & 1 deletion bower.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "eonasdan-bootstrap-datetimepicker",
"version": "3.0.1",
"version": "3.0.2",
"main": [
"build/css/bootstrap-datetimepicker.min.css",
"build/js/bootstrap-datetimepicker.min.js"
Expand Down
2 changes: 1 addition & 1 deletion build/css/bootstrap-datetimepicker.css
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Datetimepicker for Bootstrap v3
//! version : 3.0.1
//! version : 3.0.2
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
.bootstrap-datetimepicker-widget {
Expand Down
2 changes: 1 addition & 1 deletion build/css/bootstrap-datetimepicker.min.css

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

2 changes: 1 addition & 1 deletion build/js/bootstrap-datetimepicker.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion component.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "bootstrap-datetimepicker",
"version": "3.0.1",
"version": "3.0.2",
"main": ["build/css/bootstrap-datetimepicker.min.css","build/js/bootstrap-datetimepicker.min.js"],
"dependencies": {
"jquery" : ">=1.8.3",
Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "eonasdan/bootstrap-datetimepicker",
"type": "component",
"version": "3.0.1",
"version": "3.0.2",
"description": "Date/time picker widget based on twitter bootstrap",
"keywords": [
"bootstrap",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "bootstrap-datetimepicker",
"filename": "js/bootstrap-datetimepicker.min.js",
"version": "3.0.1",
"version": "3.0.2",
"repository": {
"type": "git",
"url": "https://github.com/eonasdan/bootstrap-datetimepicker.git"
Expand Down
12 changes: 6 additions & 6 deletions src/js/bootstrap-datetimepicker.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
//! version : 3.0.1
//! version : 3.0.2
=========================================================
bootstrap-datetimepicker.js
https://github.com/Eonasdan/bootstrap-datetimepicker
Expand Down Expand Up @@ -69,7 +69,7 @@ THE SOFTWARE.
dDate,

init = function () {
var icon = false, longDateFormat, rInterval;
var icon = false, localeData, rInterval;
picker.options = $.extend({}, defaults, options);
picker.options.icons = $.extend({}, icons, picker.options.icons);

Expand Down Expand Up @@ -98,16 +98,16 @@ THE SOFTWARE.
}
picker.format = picker.options.format;

longDateFormat = pMoment().localeData().longDateFormat;
localeData = pMoment().localeData();

if (!picker.format) {
picker.format = (picker.options.pickDate ? longDateFormat('L') : '');
picker.format = (picker.options.pickDate ? localeData.longDateFormat('L') : '');
if (picker.options.pickDate && picker.options.pickTime) {
picker.format += ' ';
}
picker.format += (picker.options.pickTime ? longDateFormat('LT') : '');
picker.format += (picker.options.pickTime ? localeData.longDateFormat('LT') : '');
if (picker.options.useSeconds) {
if (longDateFormat('LT').indexOf(' A') !== -1) {
if (localeData.longDateFormat('LT').indexOf(' A') !== -1) {
picker.format = picker.format.split(' A')[0] + ':ss A';
}
else {
Expand Down
2 changes: 1 addition & 1 deletion src/less/bootstrap-datetimepicker.less
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
/*!
* Datetimepicker for Bootstrap v3
//! version : 3.0.1
//! version : 3.0.2
* https://github.com/Eonasdan/bootstrap-datetimepicker/
*/
.bootstrap-datetimepicker-widget {
Expand Down

0 comments on commit 88bb292

Please sign in to comment.