Make WordPress Core

Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#11596 closed defect (bug) (invalid)

hours not tested in post.dev.js

Reported by: arena's profile 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)

#1 @azaozz
15 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.

#2 @ryan
15 years ago

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