#5666 - Support seconds in Add date / Edit date metadata fields
| Identifier | #5666 |
|---|---|
| Issue type | Trivial issue (does not break functionality) |
| Title | Support seconds in Add date / Edit date metadata fields |
| Status | Closed (rejected) |
| Tags |
Roadmap: v11 (custom) |
| Handling member | Deleted |
| Version | 10.0.47 |
| Addon | core |
| Description | I just found an odd bug in Composr v10 which also likely exists in v11.
Let's say user A makes a forum post at 12:00:01 AM. User B makes a forum post at 12:00:46 AM (Note the third number is seconds). Posts show up in the correct order... A followed by B. But if B goes and edits their post, because the add/edit time does not have seconds in it, the seconds get dropped and so the effective times get changed to 12:00:00 AM. This then causes the order of the posts to be User B followed by user A. Oops! The date/time fields for metadata add and edit times need to support seconds and maintain them on edit. |
| Steps to reproduce | |
| Funded? | No |
The system will post a comment when this issue is modified (e.g., status changes). To be notified of this, click "Enable comment notifications".
Comments
Suggestion: Add / attach seconds as a hidden value on the edit screen. Maintain the seconds value on save (even if the minutes / hours are changed). Do this on all time fields, and make sure getting dates from post/get params also looks for this special hidden value.