Skip to content

Commit

Permalink
Fix: CustomDateFormat Plugin: Hours always undefined (#2742) (#2743)
Browse files Browse the repository at this point in the history
* Fix: CustomDateFormat Plugin: Hours always undefined (#2742)

* release 6.2.9

* release 6.2.9

Co-authored-by: Sebastian Blank <[email protected]>
  • Loading branch information
Eonasdan and blankse authored Dec 15, 2022
1 parent 4dbbd20 commit 3414800
Show file tree
Hide file tree
Showing 40 changed files with 58 additions and 50 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

[![Rate on Openbase](https://badges.openbase.com/js/rating/@eonasdan/tempus-dominus.svg)](https://openbase.com/js/@eonasdan/tempus-dominus?utm_source=embedded&utm_medium=badge&utm_campaign=rate-badge)

# Tempus Dominus Date/Time Picker v6.2.8
# Tempus Dominus Date/Time Picker v6.2.9

Tempus Dominus is a powerful and robust date time picker for javascript. Version 6 is another major rewrite over the previous version. V6 is written with modern browsers in mind and is written in typescript. Bootstrap, momentjs and jQuery are no longer required dependencies. Popper2 is all that is required for the picker to position correctly. If you still require jQuery (seriously, you should move off that asap) there's a jQuery provider that wraps the native js functions.

Expand Down
2 changes: 1 addition & 1 deletion dist/js/jQuery-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*global $, tempusDominus */

/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2021 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/js/jQuery-provider.min.js

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

4 changes: 2 additions & 2 deletions dist/js/tempus-dominus.esm.js

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

2 changes: 1 addition & 1 deletion dist/js/tempus-dominus.esm.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/tempus-dominus.esm.min.js

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/tempus-dominus.js

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

2 changes: 1 addition & 1 deletion dist/js/tempus-dominus.js.map

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions dist/js/tempus-dominus.min.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion dist/locales/ar-SA.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/ar.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/de.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/es.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/fi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/fr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/it.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/nl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/pl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/ro.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/ru.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/sl.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/locales/tr.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
6 changes: 3 additions & 3 deletions dist/plugins/customDateFormat.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down Expand Up @@ -271,9 +271,9 @@
ddd: formatter({ weekday: 'short' }),
dddd: formatter({ weekday: 'long' }),
H: dateTime.getHours(),
HH: dateTime.hoursFormatted,
HH: dateTime.getHoursFormatted('h24'),
h: dateTime.hours > 12 ? dateTime.hours - 12 : dateTime.hours,
hh: dateTime.twelveHoursFormatted,
hh: dateTime.getHoursFormatted('h12'),
t: dateTime.meridiem(),
T: dateTime.meridiem().toUpperCase(),
m: dateTime.minutes,
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/fa-five.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion dist/plugins/moment-parse.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2022 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"name": "Jonathan Peterson"
},
"name": "@eonasdan/tempus-dominus",
"version": "6.2.8",
"version": "6.2.9",
"style": "dist/css/tempus-dominus.css",
"sass": "scss/tempus-dominus.scss",
"main": "dist/js/tempus-dominus.js",
Expand Down
8 changes: 8 additions & 0 deletions src/docs/partials/change-log.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,14 @@
<div id='change-log'>
<h1>Version 6</h1>

<div class='row'>
<h2>6.2.9</h2>
<h3>Bug fixes</h3>
<ul>
<li>Fixed CustomDateFormat Plugin: Hours always undefined #2742</li>
</ul>
</div>

<div class='row'>
<h2>6.2.8</h2>
<h3>Bug fixes</h3>
Expand Down
4 changes: 2 additions & 2 deletions src/docs/partials/installing.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ <h2 id='cdn'>Via CDN</h2>
<code class='language-html'>&lt;!-- Popperjs --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- Tempus Dominus JavaScript --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].8/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].9/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;

&lt;!-- Tempus Dominus Styles --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].8/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].9/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
</pre>
</div>

Expand Down
6 changes: 3 additions & 3 deletions src/docs/templates/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ <h1 class='mb-3 fw-semibold'>Powerful and robust date and time picker</h1>
</div>
</div>
<p class='text-muted mb-0'>
Currently <strong>v6.2.8</strong>
Currently <strong>v6.2.9</strong>
<span class='px-1'>&middot;</span>
<a href='https://getdatepicker.com/5-4/' class='link-secondary'>v5 docs</a>
</p>
Expand Down Expand Up @@ -55,10 +55,10 @@ <h3 class='fw-semibold'>JsDelivr</h3>
<code class='language-html'>&lt;!-- Popperjs --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@popperjs/[email protected]/dist/umd/popper.min.js&quot; integrity=&quot;sha256-BRqBN7dYgABqtY9Hd4ynE+1slnEw+roEPFzQ7TRRfcg=&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;!-- Tempus Dominus JavaScript --&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].8/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;
&lt;script src=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].9/dist/js/tempus-dominus.min.js&quot; crossorigin=&quot;anonymous&quot;&gt;&lt;/script&gt;

&lt;!-- Tempus Dominus Styles --&gt;
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].8/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
&lt;link rel=&quot;stylesheet&quot; href=&quot;https://cdn.jsdelivr.net/npm/@eonasdan/[email protected].9/dist/css/tempus-dominus.min.css&quot; crossorigin=&quot;anonymous&quot;&gt;</code>
</pre>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/docs/templates/shell.html
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@
target='_blank' rel='license noopener'>MIT</a>, docs <a
href='https://creativecommons.org/licenses/by/3.0/' target='_blank' rel='license noopener'>CC BY 3.0</a>.
</li>
<li class='mb-2'>Currently v6.2.8</li>
<li class='mb-2'>Currently v6.2.9</li>
</ul>
</div>
<div class='col-6 col-lg-2 offset-lg-1 mb-3'>
Expand Down
2 changes: 1 addition & 1 deletion src/js/jQuery-provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
/*global $, tempusDominus */

/*!
* Tempus Dominus v6.2.8 (https://getdatepicker.com/)
* Tempus Dominus v6.2.9 (https://getdatepicker.com/)
* Copyright 2013-2021 Jonathan Peterson
* Licensed under MIT (https://github.com/Eonasdan/tempus-dominus/blob/master/LICENSE)
*/
Expand Down
2 changes: 1 addition & 1 deletion src/js/tempus-dominus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -606,7 +606,7 @@ const extend = function (plugin, option) {
return tempusDominus;
};

const version = '6.2.8';
const version = '6.2.9';

const tempusDominus = {
TempusDominus,
Expand Down
2 changes: 1 addition & 1 deletion src/nuget/TempusDominus.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>TempusDominus</id>
<version>6.2.8</version>
<version>6.2.9</version>
<title>Tempus Dominus</title>
<authors>Eonasdan</authors>
<owners>Eonasdan</owners>
Expand Down
2 changes: 1 addition & 1 deletion src/nuget/TempusDominus.scss.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>TempusDominus.scss</id>
<version>6.2.8</version>
<version>6.2.9</version>
<title>Tempus Dominus</title>
<authors>Eonasdan</authors>
<owners>Eonasdan</owners>
Expand Down
4 changes: 2 additions & 2 deletions src/plugins/customDateFormat/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -320,9 +320,9 @@ class CustomDateFormat {
ddd: formatter({ weekday: 'short' }),
dddd: formatter({ weekday: 'long' }),
H: dateTime.getHours(),
HH: dateTime.hoursFormatted,
HH: dateTime.getHoursFormatted('h24'),
h: dateTime.hours > 12 ? dateTime.hours - 12 : dateTime.hours,
hh: dateTime.twelveHoursFormatted,
hh: dateTime.getHoursFormatted('h12'),
t: dateTime.meridiem(),
T: dateTime.meridiem().toUpperCase(),
m: dateTime.minutes,
Expand Down
2 changes: 1 addition & 1 deletion types/tempus-dominus.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ declare const extend: (
Unit: typeof Unit;
version: string;
};
declare const version = '6.2.8';
declare const version = '6.2.9';
export {
TempusDominus,
extend,
Expand Down
2 changes: 1 addition & 1 deletion types/tempus-dominus.esm.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ declare const extend: (
Unit: typeof Unit;
version: string;
};
declare const version = '6.2.8';
declare const version = '6.2.9';
export {
TempusDominus,
extend,
Expand Down
2 changes: 1 addition & 1 deletion types/tempus-dominus.esm.min.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ declare const extend: (
Unit: typeof Unit;
version: string;
};
declare const version = '6.2.8';
declare const version = '6.2.9';
export {
TempusDominus,
extend,
Expand Down
2 changes: 1 addition & 1 deletion types/tempus-dominus.min.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1288,7 +1288,7 @@ declare const extend: (
Unit: typeof Unit;
version: string;
};
declare const version = '6.2.8';
declare const version = '6.2.9';
export {
TempusDominus,
extend,
Expand Down

0 comments on commit 3414800

Please sign in to comment.