Calendar field retains keyed in seconds value
Calendar field shows '00' as the seconds value
Joomla 3.7.1
PHP 5.6
See video at http://support-media.muckypuddle.me/kVJy
Labels |
Added:
?
|
Build | staging | ⇒ | 3.7.1 |
Category | ⇒ | com_content |
it's by design, or we need one more dropdown there
how can it be by design to show a value of 18:20:36 in the field and then change that field to 18:20:00 when it is saved
pretty sure neither of us are asking for a dropdown to select the seconds. just that the entered value is not changed
or we need one more dropdown there
If that's the only way: Yes, please. I want to see the time as saved in the database (where the seconds are correctly saved (like entered)).
What @brianteeman said: not fussed about a dropdown, must be able to retain an entered value
Status | New | ⇒ | Discussion |
I confirm the bug in Joomla 3.7.2!!!
In fact, the correct seconds value is duely saved in the db.
Therefore it is just a matter of displaying it correctly in the calendar field.
Calendar field ignore seconds.
In article edit correct seconds flashes up when item saved, then returns :00
Adding my own component to otherwise clean Joomla 3.7.2 installation - chasing what I thought was my bug and then found same thing happens in article edit! Argh!!
Joomla 3.7.3 bug not fixed :(
Perfect!
Joomla! 3.7.4 bug not fixed :-(
Guys, the error affects the time of publication! For news sites this is very critical!!!
Not seen any movement on this for a couple of months, can anyone point me in the right direction of where the issue may lie in the JS? Happy to have a crack with some pointers.
can anyone point me in the right direction of where the issue may lie in the JS
Yes. I can do that. So the problem is that we have dropdowns for hours, minutes and am/pm, therefore we don't really listening for the changes for the seconds. There might be a way to set the seconds if user typed it, but I haven't looked at it, you are more than welcome to fiddle with the code:
joomla-cms/media/system/js/fields/calendar.js
Lines 169 to 195 in e2d7728
Closed as we have a PR
Status | Discussion | ⇒ | Closed |
Closed_Date | 0000-00-00 00:00:00 | ⇒ | 2017-08-24 15:15:52 |
Closed_By | ⇒ | brianteeman |
I can confirm this. The same is also true if you just select the today value where you will then be shown a value with seconds that is reset to 0 on save
![aa](https://cloud.githubusercontent.com/assets/1296369/26259217/e300bd42-3cbf-11e7-9689-c2c680cbbdad.gif)