diff --git a/js/bootstrap-datetimepicker.js b/js/bootstrap-datetimepicker.js index b98b349f..c89f0d85 100644 --- a/js/bootstrap-datetimepicker.js +++ b/js/bootstrap-datetimepicker.js @@ -1452,7 +1452,7 @@ }, validParts: function (type) { if (type == 'standard') { - return /hh?|HH?|p|P|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g; + return /t|hh?|HH?|p|P|ii?|ss?|dd?|DD?|mm?|MM?|yy(?:yy)?/g; } else if (type == 'php') { return /[dDjlNwzFmMnStyYaABgGhHis]/g; } else { @@ -1614,6 +1614,7 @@ var val; if (type == 'standard') { val = { + t: date.getTime(), // year yy: date.getUTCFullYear().toString().substring(2), yyyy: date.getUTCFullYear(),