• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 2.x Branch ‹ General Support (v2.x)
  • Change font size
  • FAQ
  • Register
  • Login

wrong timestamp in my chat

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
2 posts • Page 1 of 1

wrong timestamp in my chat

Postby darksigns » Sat Apr 06, 2013 7:42 pm

Hi Guys,


where can I set the time in the code to use the correct time on my chat?
it shows 18:30 at 20:30 so 2 hours difference I have.

THX
darksigns
New member
 
Posts: 2
Joined: Sat Apr 06, 2013 7:38 pm
Top

Re: wrong timestamp in my chat

Postby darksigns » Thu Apr 11, 2013 5:16 am

In the meantime I have found the solution:
How to change the chat timezone ?
First of all, take care that the php internal timezone flag is correctly setup. For example, if you want to force the chat to be executed in France, put this code at beginning of your chat script (only available on php5) :

date_default_timezone_set('Europe/Paris');
If changing the php timezone in not enough you'll have to play with the time_offset parameter. For example, if you want to advance the time for 2 hours :

$params['time_offset'] = 60*60*2; // offset in seconds
darksigns
New member
 
Posts: 2
Joined: Sat Apr 06, 2013 7:38 pm
Top


Post a reply
2 posts • Page 1 of 1

Return to General Support (v2.x)

Who is online

Users browsing this forum: No registered users and 0 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub