WordPress.org

Make WordPress Core

Opened 7 years ago

Closed 7 years ago

Last modified 7 years ago

#3701 closed defect (bug) (fixed)

Post/Page drafts show double timezone offset in temporary title

Reported by: 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)

comment:1 foolswisdom7 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?

comment:2 markjaquith7 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.

comment:3 priv7 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.

comment:4 priv7 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.

comment:5 markjaquith7 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)

comment:6 markjaquith7 years ago

  • Description modified (diff)

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

comment:7 markjaquith7 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

comment:8 markjaquith7 years ago

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

Note: See TracTickets for help on using tickets.