option.timeZone to '' instead of UTC. This way it will default to the local timezone if it's not set.getMoment function no longer sets startOf('d')tooltipstooltips allows custom, localized text to be included for icon tooltips
fixed #1066
fixed #1087 sideBySide properly supports toolbarPlacement [top, bottom]
fixed #1119
fixed #1069 added input.blur()
fixed #1049 fixed doc example
fixed #999 picker now looks for an element with .input-group-addon
disabledTimeIntervals #644
allowInputToggle #929
focusOnShow #884
public viewDate function #872
enabledHours and disabledHours.
dp.update fires when viewDate is changed (in most cases) #937
viewMode now supports a decades view.
Note: because the year picker shows 12 years at a time, I've elected to make this view show blocks of 12 years
Note: when selecting a decade the viewDate will change to the center of the selected years
parseInputDate #1095
fixed #815 by adding .wider when using both seconds and am/pm.
fixed #816 changed both min/max date to move the selected date inside.
fixed #855 #881 fillDate, fillMonths, fillDow uses startOf('day'), which will hopefully fix the DST issues.
fixed #885 daysOfWeekDisabled will move the date to a valid date if useCurrent is true. Today button will check if the DoW is disabled.
fixed #906
fixed #912 if useCurrent:false month and year view will no longer have the current month/year selected.
fixed #914 use24hours will ignore anything in side of [] in the format string.
fixed #916 added titles to all icons. At some point the text should be moved to the icon's array, but this would probably be a breaking change.
fixed #940 added -1 tab index to am/pm selector
changed in/decrement behavior to check if the new date is valid at that granularity (hours, minutes, seconds). will also validate as before
Added several in new features:
`keybinds`, `inline`, `debug`, `clear()`, `showClose`, `ingoreReadOnly`, `datepickerInput` and `keepInvalid`.
Bug squashing
Defined a Public API and hidden rest of functions, variables so that all configuration options can be changed dynamically.
set/getDate() is now replaced with an overloaded date() function. Use it without a parameter to get the currently set date or with a parameter to set the date.
hide(), show(), toggle(), enable(), disable() and the rest of setter functions now support chaining. ie $('#id').data('DateTimePicker').format('DD-MM-YYYY').minDate(moment()).defaultDate(moment()).show() works
Replaced previous - next buttons in Date subviews with configurable icons
Changed language option name to locale to be inline with moment naming
Implemented #402 all data-date-* variables are more readable and also match with the ones in the configuration object
options.direction and options.orientation were merged into a single object options.widgetPositioning with vertical and horizontal keys that take a string value of 'auto', 'top', 'bottom' and 'auto', 'left', 'right' respectively. Note that the 'up' option was renamed to 'top'
added a second way to define options as data attributes. Instead of adding distinct data-date-* config options you can now also pass a data-date-options attribute containing an object just the same as the options object that element.datetimepicker constructor call takes
also added a options() public api function to get/set that takes an option object and applies it to the component in one call
Implemented #130 by introducing a boolean options.calendarWeeks and calendarWeeks() api function
Implemented #432. Widget DOM element is now lazily added only when shown and removed from the document when hidden.
Refactor all UI click functions and put them as functions in the actions array private variable
Refactor template building process to seperate functions according to what they do
Remove some styles that where hardcoded in the javascript code
Refactor all code that changes the picker.date to change it through the setValue function to allow one place for validation logic (min/max/weekdaysenabled etc) and also one place for emmiting dp.change events
The v4beta branch code includes all fixes up to v.3.1.2
Added toggle() to the public API which toggles the visibility of the DateTimePicker
Refactored set function to be included in the setValue function
Added a testing framework using jasmine and phantom.js
dp.-. This should fix the double change event firing.setDate now fires dp.changeminViewMode and viewMode work properlyminuteStepping the minute select grid will only show available steppingsdata-OPTION has been changed to data-date-OPTION. These options are expected to be on the input-group if you're using the input-group or the a bare input field if you're not using the input-groupsideBySide change be used to display both the d and the timepicker side by sidedaysOfWeekDisabled: []. For example, use daysOfWeekDisabled: [0,6] to disable Sunday and SaturdayuseCurrent, thanks to @ruiwei. When true, picker will set the value to the current date/time (respects picker's format)showToday, thanks to @ruiwei. When true, picker will display a small arrow to indicate today's date.startDate to minDate and endDate to maxDate to make it more clear what these options do.setDate can be given null to force clear the pickerbuild.less file name has been been changed to bootstrap-datetimepicker-build.less to prevent collisionssetStartDate and setEndDate should now properly set.change event issues should be fixedFix for #112: change function no longer sets the input to a blank value if the passed in date is invalid
Enhancement for #103: Increated the z-index of the widget
change event for knockout and the like as well as change.dp which contains the old date and the new dateFix for #73: IE8 should be working now
Enhancement for #79: minuteStepping option takes a number (default is 1). Changing the minutes in the time picker will step by this number.
Enhancement for #74 and #65: useMinutes and useSeconds are now options. Disabling seconds will hide the seconds spinner. Disabling minutes will display 00 and hide the arrows
Enhancement for #67: Picker will now attempt to convert all data-OPTION into its appropriate option
moment object since moment 2.4.0 has removed global referenceuseStrict. When validating dates in update and change, the picker can use a stricter formatting validationinput-group-addon is present use datepickerbutton to identify where the picker should popup from. (#48)error.dp. Fires when Moment cannot parse the date or when the timepicker cannot change because of a disabledDates setting. Returns a Moment date object. The specific error can be found be using invalidAt(). For more information see Moment's docsA or a in the format string to determine if the AM/PM selector should display.change.dp event to also include the previous date.####2.0.1
error.dp fires when plugin cannot parse date or when increase/descreasing hours/minutes to a disabled date.####2.0.0
disabledDates is now an option to set the disabled dates. It accepts date objects like new Date("November 12, 2013 00:00:00") and 12/25/2013' andmoment` date objects