[buddypress-trac] [BuddyPress Trac] #5781: strtotime() is evil don't use it

buddypress-trac noreply at wordpress.org
Tue Jul 29 21:02:33 UTC 2014


#5781: strtotime() is evil don't use it
--------------------------+------------------
 Reporter:  r-a-y         |       Owner:
     Type:  defect (bug)  |      Status:  new
 Priority:  normal        |   Milestone:  2.1
Component:  Core          |     Version:
 Severity:  normal        |  Resolution:
 Keywords:  has-patch     |
--------------------------+------------------

Comment (by DJPaul):

 I don't understand why we want to introduce something like
 `bp_core_strtotime` when WordPress doesn't have the same problem. Nor do I
 understand what this change is trying to fix.

 It sounds like this is a hack around the fact that (apparently) the raw
 timestamps that we use throughout BuddyPress aren't UTC. Fixing that seems
 like the correct fix, as is making sure we always convert to the server's
 current timezone on output.

--
Ticket URL: <https://buddypress.trac.wordpress.org/ticket/5781#comment:2>
BuddyPress Trac <http://buddypress.org/>
BuddyPress Trac


More information about the buddypress-trac mailing list