mirror of
https://github.com/primefaces/primevue.git
synced 2025-05-11 01:42:34 +00:00
Format fixes
This commit is contained in:
parent
6de66bcaf6
commit
c9a4362607
3 changed files with 3 additions and 5 deletions
|
@ -1168,9 +1168,7 @@ export default {
|
|||
let date = new Date(dateMeta.year, dateMeta.month, dateMeta.day);
|
||||
|
||||
if (this.showTime) {
|
||||
(this.hourFormat === '12' && this.currentHour !== 12 && this.pm) ?
|
||||
date.setHours(this.currentHour + 12) :
|
||||
date.setHours(this.currentHour);
|
||||
this.hourFormat === '12' && this.currentHour !== 12 && this.pm ? date.setHours(this.currentHour + 12) : date.setHours(this.currentHour);
|
||||
|
||||
date.setMinutes(this.currentMinute);
|
||||
date.setSeconds(this.currentSecond);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue