What is the code for local time so I can add it to my postbit and it will show the users local time?
Thanks in advance!
BUMP ... anyone knows how ?
(2011-03-16, 05:50 AM)Yaldaram Wrote: [ -> ]Why not, there it is: http://yaldaram.com/showthread.php?tid=308
Hey Yald what's the actual function you use to format the timestamp to the user's time zone? Or did you have to make your own not built into MyBB?
(2011-03-16, 05:59 AM)fizz Wrote: [ -> ] (2011-03-16, 05:50 AM)Yaldaram Wrote: [ -> ]Why not, there it is: http://yaldaram.com/showthread.php?tid=308
Hey Yald what's the actual function you use to format the timestamp to the user's time zone? Or did you have to make your own not built into MyBB?
I fetch the
timezone
field from users table WHERE uid={$post['uid']} and then format it using gmdate() function