[Bb-trac] [bbPress] #1000: incorrect use of strtotime in profile.php

bbPress bb-trac at lists.bbpress.org
Sat Nov 29 18:03:19 GMT 2008


#1000: incorrect use of strtotime in profile.php
----------------------------+-----------------------------------------------
 Reporter:  _ck_            |       Owner:                    
     Type:  defect          |      Status:  new               
 Priority:  normal          |   Milestone:  1.0-beta & XML-RPC
Component:  Administration  |     Version:  1.0-alpha-2       
 Severity:  normal          |    Keywords:                    
----------------------------+-----------------------------------------------
 I believe $reg_time is calculated incorrectly using the local system time
 offset instead of GMT like in the db in profile.php

 `$reg_time = strtotime( $user->user_registered );`

 should be just like in `function bb_profile_data( $id = 0 ) {`

 `$reg_time = bb_gmtstrtotime( $user->user_registered );`

-- 
Ticket URL: <http://trac.bbpress.org/ticket/1000>
bbPress <http://bbpress.org/>
Innovative forum development


More information about the Bb-trac mailing list