FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » about time zone
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
about time zone [message #5353] Thu, 29 August 2002 04:37 Go to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

i think that it is not a bug. because it work well in your forum.

but on my pc,i must

define('__request_timestamp__', time()+28800);

then the time can be +8(china/shanghai)

could you tell me which php file control the time zone in fud?

[Updated on: Thu, 29 August 2002 04:39]

Report message to a moderator

Re: about time zone [message #5360 is a reply to message #5353] Thu, 29 August 2002 11:50 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Uhm timezone are determined by a special setting, you do not need to hack up the timestamp value. The admin control panel allows you to select the forum's default timezone and then each user can choose a timezone of their choice in their profile.

FUDforum Core Developer
Re: about time zone [message #5373 is a reply to message #5360] Fri, 30 August 2002 01:04 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

prottoss wrote on Thu, 29 August 2002 19:50

Uhm timezone are determined by a special setting, you do not need to hack up the timestamp value. The admin control panel allows you to select the forum's default timezone and then each user can choose a timezone of their choice in their profile.


i have already set timezone at admin panel,but it does not work!
eg now 9:05am ,but the forum show "Fri Aug 01:05:42 ric 2002".
Re: about time zone [message #5378 is a reply to message #5373] Fri, 30 August 2002 02:43 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
Well, if you'll notice from the 'Fri Aug 01:05:42 ric 2002' string, the forum thinks it is inside the 'ric' timezone and is showing the time reflective of that timezone.
Is this the time you see when browsing the forum as anonymous or registered user? If you are browsing as registered user, check the timezone settings inside your profile, as those would overwrite the default timezone option.


FUDforum Core Developer
Re: about time zone [message #5379 is a reply to message #5378] Fri, 30 August 2002 02:44 Go to previous messageGo to next message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
If you still experience the problem let me know which timezone you are using.

FUDforum Core Developer
Re: about time zone [message #5386 is a reply to message #5379] Sat, 31 August 2002 07:37 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

Current Time: Sat Aug 07:34:44 a/S 2002

Is a/S means china/Shanghai ??

now ,it is 15:34 but it show 07:34:44

[Updated on: Sat, 31 August 2002 07:38]

Report message to a moderator

icon4.gif  Re: about time zone [message #5415 is a reply to message #5386] Mon, 02 September 2002 07:26 Go to previous messageGo to next message
ezdb is currently offline  ezdb   China
Messages: 158
Registered: May 2002
Location: china
Karma: 0
Senior Member

now,i know the reason.
that is the function putenv()!
you can see
http://202.96.236.101:8080/time.php
http://zdb.my.topun.com/time.php

the value of putenv("TZ=Asia/Shanghai") is 1

but http://zdb.my.topun.com/time.php is error!

the same thing happened on my pc

so i think that it isn't a bug:) but it only work some of hosts.

[Updated on: Mon, 02 September 2002 07:48]

Report message to a moderator

Re: about time zone [message #5428 is a reply to message #5415] Tue, 03 September 2002 02:11 Go to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma: 0
Senior Member
Administrator
Core Developer
You are correct, some computers do not have the recent timezone defenitions and as the result do not support certain timezones.
Since there are usually 2-3 closely related options, in such cases you may need it to play with them till you find one supported on your machine.

I intend to write a script that will try to determine timezones supported by each machine so that this problem can be avoided in the future.


FUDforum Core Developer
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: forum lockups using 1.2.8
Next Topic: id is no value in Private Messaging view page
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Wed Nov 06 01:22:06 GMT 2024

Total time taken to generate the page: 0.02017 seconds