• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ Feature Requests (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

configure time difference

This forum is now locked as we will no longer be developing the v1.x branch

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

Topic locked
4 posts • Page 1 of 1

Postby cactux » Tue Feb 28, 2006 9:20 pm

Hello,

My server is at +6 hours from most of my visitors, so the time displayed for messages is wrong.
Could it be possible to have a parameter to set up this? So a server in USA would display correct time for users in France, for example.
Or better : find a way to determine the time of the visitor, and display a correct one. Isn't there a javascript function to get the time of the client?

Thanks !

Yann
cactux
Member
 
Posts: 16
Joined: Wed Feb 15, 2006 11:08 pm
Location: France
  • Website
Top

Postby cactux » Tue Mar 14, 2006 3:10 pm

After reading my post, I realize I was not very clear, sorry.

Here is the problem:
My server is in US, although most of my visitors are in France.
When they connect to the server, the time displayed is 6 hours behind.
Example : if it is 10:30am in France, a user will see 4:30 displayed for the time.

How can I correct this ?
Could it be done automatically by detecting the time of the client?

Thanls
Yann
cactux
Member
 
Posts: 16
Joined: Wed Feb 15, 2006 11:08 pm
Location: France
  • Website
Top

Postby phpfreechat » Tue Mar 14, 2006 7:46 pm

I think to solution is to use a user paremeters (metadata on the next 1.0 data model is a good solution) to store the time difference between the client and the server, then on the client side when parsing the message, it will be possible to adjust the time.

However this is not a priority for me now, I concentrate my efforts to the 1.0 release.
phpfreechat
Site Admin
 
Posts: 2657
Joined: Tue Feb 07, 2006 3:35 pm
Location: France
Top

Postby dieq41 » Tue Jul 01, 2008 3:13 am

in phpglobalconfig.class

/**
* <p>Can be used to setup the chat time zone.
* It is the difference in seconds between chat clock and server clock.
* (Default value: 0)</p>( (Indonesia:25200)(Perbedaan waktu dgn GMT : 7jam : 7*60*60=25200second))-diky
*/
var $time_offset = 25200;

you can change time offset = your different time with server (in seconds)

thx
./ dieq41
./ dieq41
newbie php
dieq41
New member
 
Posts: 9
Joined: Sat Mar 15, 2008 10:50 am
Location: Jakarta, Indonesia
  • Website
  • YIM
Top


Topic locked
4 posts • Page 1 of 1

Return to Feature Requests (v1.x)

Who is online

Users browsing this forum: No registered users and 1 guest

  • 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