Ticket #3701 (closed defect: fixed)

Opened 1 year ago

Last modified 1 year ago

Post/Page drafts show double timezone offset in temporary title

Reported by: markjaquith Assigned to: anonymous
Priority: low Milestone: 2.1.1
Component: Administration Version: 2.1
Severity: normal Keywords:
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

01/28/07 13:54:40 changed by foolswisdom

  • 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?

01/28/07 23:34:48 changed by markjaquith

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.

02/14/07 19:17:44 changed by priv

Is that platform dependent?

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

02/14/07 19:58:59 changed by priv

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.

02/14/07 22:39:02 changed by markjaquith

  • description changed.

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)

02/14/07 22:40:05 changed by markjaquith

  • description changed.

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

02/14/07 22:44:58 changed by markjaquith

  • status changed from new to closed.
  • resolution set to fixed.

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

02/14/07 22:45:32 changed by markjaquith

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