Make WordPress Core

Opened 18 years ago

Closed 18 years ago

Last modified 18 years ago

#3701 closed defect (bug) (fixed)

Post/Page drafts show double timezone offset in temporary title

Reported by: markjaquith's profile markjaquith Owned by:
Milestone: 2.1.1 Priority: low
Severity: normal Version: 2.1
Component: Administration Keywords:
Focuses: Cc:

Description (last modified by markjaquith)

If draft was saved at 4pm local time and you have -3 timezone offset, it'll say you posted it at 1pm.

Steps to reproduce:

  1. New draft
  2. Type some body text, no title
  3. Add a custom field
  4. Navigate away.
  5. Note title of draft shows GMT + (2*offset)

Change History (8)

#1 @foolswisdom
18 years ago

  • Version set to 2.1

Although I don't doubt the problem, "server time" would seem to be relevant to the problem description, or is that what you mean by local time?

#2 @markjaquith
18 years ago

No, it shows GMT minus (2*offset), by my math. Local time is GMT minus offset (as set in WordPress)... the desired time to present to the user.

#3 @priv
18 years ago

Is that platform dependent?

I'm not seeing this on my computer(winxp sp2+firefox2/IE7), the draft preview shows current localtime correctly.

#4 @priv
18 years ago

I'm sorry that shouldn't be anything related to the browser.

But can you describe more details about what exactly is the title you're referring to?(the theme/reproduce steps?)

I tested wordpress 2.1 on thirteen/ocadia, the draft preview date/time always shows correct GMT+offset current time. And I don't see anything strange in query.php.

#5 @markjaquith
18 years ago

  • Description modified (diff)

Steps to reproduce:

  1. New draft
  2. Type some body text, no title
  3. Add a custom field
  4. Navigate away.
  5. Note title of draft shows GMT - (2*offset)

#6 @markjaquith
18 years ago

  • Description modified (diff)

Bah, that should be PLUS (2*offset) ... my offset just happens to be negative.

#7 @markjaquith
18 years ago

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

(In [4882]) Prevent double timezone offset when saving titleless AJAX-created drafts. fixes #3701

#8 @markjaquith
18 years ago

(In [4883]) Prevent double timezone offset when saving titleless AJAX-created drafts. fixes #3701

Note: See TracTickets for help on using tickets.