#11596 closed defect (bug) (invalid)
hours not tested in post.dev.js
Reported by: | arena | Owned by: | |
---|---|---|---|
Milestone: | Priority: | normal | |
Severity: | normal | Version: | 2.9 |
Component: | Administration | Keywords: | |
Focuses: | Cc: |
Description
current code is
if ( attemptedDate.getFullYear() != aa || (1 + attemptedDate.getMonth()) != mm || attemptedDate.getDate() != jj || attemptedDate.getMinutes() != mn ) {
Change History (2)
Note: See
TracTickets for help on using
tickets.
This is meant to check if a valid date/time was entered when changing posts and comments date. The way it work is to convert the date to UNIX time, then convert it back and compare. It doesn't need to compare the hours as entering > 24 would roll on to the next day (the same doesn't work reliably for minutes).
Feel free to reopen if it lets you set an invalid date/time.