Make WordPress Core

Opened 17 years ago

Closed 17 years ago

Last modified 17 years ago

#11596 closed defect (bug) (invalid)

hours not tested in post.dev.js

Reported by: arena Owned by:
Priority: normal Milestone:
Component: Administration Version: 2.9
Severity: normal Keywords:
Cc: Focuses:

Description

current code is

if ( attemptedDate.getFullYear() != aa || (1 + attemptedDate.getMonth()) != mm || attemptedDate.getDate() != jj || attemptedDate.getMinutes() != mn ) {

Change History (2)

#1 @azaozz
17 years ago

  • Resolutioninvalid
  • Status newclosed

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
17 years ago

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