[wp-trac] [WordPress Trac] #16993: wp-mail.php doesn't account for half-hour and quarter-hour timezones.

WordPress Trac wp-trac at lists.automattic.com
Wed Mar 30 04:51:19 UTC 2011


#16993: wp-mail.php doesn't account for half-hour and quarter-hour timezones.
---------------------------+------------------------------
 Reporter:  neoscrib       |       Owner:
     Type:  defect (bug)   |      Status:  new
 Priority:  normal         |   Milestone:  Awaiting Review
Component:  Blog by Email  |     Version:  3.1
 Severity:  trivial        |  Resolution:
 Keywords:  has-patch      |
---------------------------+------------------------------

Comment (by neoscrib):

 Replying to [comment:2 solarissmoke]:
 > The current logic is replicating what PHP's `strtotime()` would do
 internally - I don't see the point. We can just use strtotime, which can
 handle RFC822 timestamps (including timezone offsets). It doesn't like
 parenthesised timezone strings (after the +0000 bit), so we should remove
 those, but otherwise it works for every email header date I've seen.

 That makes more sense!

-- 
Ticket URL: <http://core.trac.wordpress.org/ticket/16993#comment:3>
WordPress Trac <http://core.trac.wordpress.org/>
WordPress blogging software


More information about the wp-trac mailing list