Jump to content

Recommended Posts

Posted

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:

Posted (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 by spiritof52
Posted
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
Posted

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! >

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use and Privacy Policy.