WordPress.org

Make WordPress Core

Opened 4 years ago

Closed 4 years ago

Last modified 4 years ago

#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)

comment:1 azaozz4 years ago

  • Resolution set to invalid
  • Status changed from new to closed

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.

comment:2 ryan4 years ago

  • Milestone 2.9.1 deleted
Note: See TracTickets for help on using tickets.