collapse collapse
* User Info
 
 
Welcome, Guest. Please login or register.
* Search

* Board Stats
  • stats Total Members: 989
  • stats Total Posts: 18366
  • stats Total Topics: 2501
  • stats Total Categories: 7
  • stats Total Boards: 35
  • stats Most Online: 1144

Author Topic: The Time  (Read 9322 times)

0 Members and 4 Guests are viewing this topic.

Offline Alreadythere

  • BeBot Maintainer
  • BeBot Hero
  • ******
  • Posts: 1288
  • Karma: +0/-0
Re: The Time
« Reply #15 on: July 09, 2008, 09:02:31 pm »
I'm sorry but i just can't see the logic here, if it check the time on server why can't it check the real time on the server and not gmt?
UNIX server have set their hardware clocks to GMT/UTC, they just use a timezone setting to display different timezones. gmdate() is getting the info of the hardware clock.

Why is bebot using the hardware clock (and with that GMT time)? Easy answer, almost everyone knows the relation of his time to GMT. And in AO there are people of every timezone on the same server, so using a time that can be converted easy is a plus there.

Offline Jovy

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: The Time
« Reply #16 on: July 10, 2008, 10:06:11 am »
that will only affect !time, and leave the timestamps on the last seen on alts, whois, the log, the afks the roster along with several other things unchanged and still using UTC
so change where you can find gmdate()

Offline Synt

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: The Time
« Reply #17 on: August 15, 2008, 10:23:25 pm »
I'm in the same seat, althou i have a suggestion would it be possible to add a preference to members so they can set their offset from GMT and the bot will remember it?
if this is at all possible it would be really nice.
My php skills is not up for the task tho.

Offline Glarawyn

  • BeBot Hero
  • ******
  • Posts: 521
  • Karma: +0/-0
Re: The Time
« Reply #18 on: August 15, 2008, 10:52:33 pm »
would it be possible to add a preference to members so they can set their offset from GMT and the bot will remember it?

Yes, and no. The problem is daylight savings time. There are (obviously) 24 different offset, but UTC offset is not the same as a time zone. Each time zone has different rules, such as Daylight Savings Time (USA), and European Summer Time, etc.

For example, I'm currently in the US Central time zone. The standard (CST) offset for this zone is -6. Currently we are under Daylight Savings Time rules, so we are under Central US Daylight Time (CDT), not CST. Now the lower 48 states have 4 different time zones (Eastern, Central, Mountain, Pacific). Should be easy right? No so much, there are states such as Arizona that do not follow Daylight Savings Time rules. Arizona is always Mountain Standard Time. To add another layer of complexity the Navajo Nation Reservations do follow the DST rules, so if you are in Arizona but are on the Navajo Nation Reservation you are (Today: 2008-08-15) on MDT.

To add more confusion, time zone rules are in flux. The current USA Energy Bill changed the rules for daylight savings time for 2007 and 2008, but these provisions expire in 2009 and the old rules will take effect again unless the 2009-2010 energy bill renews them.

As time zones are political in nature situations like this can simply be expected. PHP does have some functionality for figuring out time zones, but again, time zones are political. If the politicians change the rules PHP itself needs to be updated. Previoulsy, some older versions of PHP4 were completely unaware of the 2007-2008 US rule changes, while some PHP4 installations were not. To work around this, the BeBot developers would have had to know what the status of each PHP version is in terms of time zone rules, and create code to correct PHP's outdated rules if the bot was running on an older PHP version. A similar situation is likely on PHP5 if the US changes daylight savings times rules again.

After doing through research on the whole mess I opted for the easy way out and went with UTC time, which is an internationally recognized standard. Even though UTC is the international standard for time, the freaking Europeans can't figure out the difference between UTC and European Summer Time. People in London will often give the GMT/UTC time as being an hour ahead of the actual UTC time, and then tell you that they are right and you're wrong. Sorry guys, it's you who are screwed up not the rest of the world. European Summer Time is UTC+1 if you're in the +0 offset time zone...

So even the international standard for time is often confused and given incorrectly. Airline Pilots, ship captains, and computer programmers are generally the only people to get it right.  :P

So basically we've written off the whole timezone thing as way too much effort. Thank your local, national, and international politicians.


Offline Synt

  • BeBot Rookie
  • *
  • Posts: 2
  • Karma: +0/-0
Re: The Time
« Reply #19 on: August 15, 2008, 11:00:45 pm »
the suggestion wasn't to let the bot calculate the time zones, the suggestion was to let players have a setting for time and add +2 or -4
would that be easy or hard to make?

Offline nhoople

  • BeBot Rookie
  • *
  • Posts: 6
  • Karma: +0/-0
    • The Older Gamers
Re: The Time
« Reply #20 on: August 16, 2008, 12:13:38 am »
Gee whiz people, whats so hard about figuring out your time zone from the UTC?  If you use UTC as your standard when setting up events and raids, then everyone is on the same sheet of music.

 

* Recent Posts
Com bot module by bitnykk
[November 25, 2024, 05:36:11 pm ]


0.8.x updates for AO by bitnykk
[June 23, 2024, 03:19:47 pm ]


0.8.x updates for AoC by bitnykk
[June 23, 2024, 03:19:44 pm ]


[AoC] special char for items module by bitnykk
[February 09, 2024, 09:41:18 pm ]


BeBot still alive & kicking ! by bitnykk
[December 17, 2023, 12:58:44 am ]

* Who's Online
  • Dot Guests: 313
  • Dot Hidden: 0
  • Dot Users: 0

There aren't any users online.
* Forum Staff
bitnykk admin bitnykk
Administrator
Khalem admin Khalem
Administrator
WeZoN gmod WeZoN
Global Moderator
SimplePortal 2.3.7 © 2008-2024, SimplePortal