GaVrA Posted March 10, 2008 Posted March 10, 2008 Hmm can someone tell me how to put different time then server time? I found this: date_default_timezone_set('UTC'); That set's default timezone, but how can i make it show user's time? :lol:
spiritof52 Posted March 10, 2008 Posted March 10, 2008 (edited) hmm don't know if tb or iris have a method for you, what I use is this Local time in topics A simple little addon that displays the user's local time below their avatar in each of their posts. http://h1.ripway.com/northernLights/userlocaltime.jpg Edited March 10, 2008 by spiritof52
GaVrA Posted March 10, 2008 Author Posted March 10, 2008 No, no not for ipb, im kind of learning php so i just want to know how can i set user time in my scripts... :lol:
Management terabyte Posted March 11, 2008 Management Posted March 11, 2008 For example in IPB they use the function gmdate() and then they add the users time zone choice (if not set they use the default time zone set in the board) gmdate() returns the time based on GMT, have a look at the function get_date() in sources/ipsclass.php :lol: Board Rules - Available Products - Need a Custom Work? < Don't PM me for support, post in the forum or submit a ticket from the client area instead! >
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now