Results 1 to 7 of 7

Thread: EQTime off by 1 hour

  1. #1
    Registered User Elyon's Avatar
    Join Date
    Mar 2002
    Posts
    139

    EQTime off by 1 hour

    I noticed that the EQTime on the Status bar in SEQ is off by an hour. An easy fix, is to change line 3255 in Packet.ccp from -1 to -2 and it seems to correct the problem. Doesn't seem worth it to submit a patch for this.

  2. #2
    Registered User Zaphod's Avatar
    Join Date
    Dec 2001
    Posts
    648

    Re: EQTime off by 1 hour

    Originally posted by Elyon
    I noticed that the EQTime on the Status bar in SEQ is off by an hour. An easy fix, is to change line 3255 in Packet.ccp from -1 to -2 and it seems to correct the problem. Doesn't seem worth it to submit a patch for this.
    You appear to be correct, the time does appear to be off 1 hour. The really strange thing is that this code hasn't changed in a long time and I know it used to work. I'm going to do some more research into this because the timezone of the server should not have an effect on this calculation, since the reference time and the time passed into getEQTimeOfDay to perform the calculation of the new EQ time are both from the time() system call on your local system (unless you make it a habbit of changing your local time zones). Maybe SOE rebased the hour passed in the timeOfDayStruct.

    Enjoy,
    Zaphod (dohpaZ)
    Chief Software Engineer of the Apocalypse.
    http://showeq.doomed.to/
    SourceForge.net user: dohpaz.

    Personal thank you donations are now accepted.

  3. #3
    Registered User Zaphod's Avatar
    Join Date
    Dec 2001
    Posts
    648
    OK, I just put some code in to check, and indeed EQ has rebased there time for whatever reason. The hour field in the timeOfDayStruct is now 1 hour higher then what is displayey in EQ's /time command.

    As an example when zoning in I got the TimeOfDayCode handlers message (which prints the raw times from the timeOfDayStruct):
    TIME: 03:09 06/08/3175
    As soon as I finished zoning in I did the '/time' command and got the following:
    Game Time: Sunday, June 08, 3175 - 2 AM
    As such it requires a slightly different fix, because the base change effects other calculations in ShowEQ and not just that time display. It will be fixed in my next CVS commit.

    Enjoy,
    Zaphod (dohpaZ).
    Chief Software Engineer of the Apocalypse.
    http://showeq.doomed.to/
    SourceForge.net user: dohpaz.

    Personal thank you donations are now accepted.

  4. #4
    Registered User
    Join Date
    Jan 2002
    Posts
    87
    One has to wonder, is EQ on daylight savings time?
    Yes, I used

    before posting.

  5. #5
    Developer Ratt's Avatar
    Join Date
    Dec 2001
    Posts
    533
    I believe that change was put in to handle DST changes on the server RTC... if you recall in years past, DST changes always wrecked havok with the game itself.

    Why they don't just coordinate to UTC is a mystery... it's not like the servers need to be on US time for any given reason... and anything that needs to be done at xxx hour of the day in the local time zone could be adjusted for... and thus you'd never have to flop around on DST/ST ...

    Legacy code in all it's glory.
    The problem with defending the purity of the English language is that English is about as pure as a cribhouse whore. We don't just borrow words; on occasion, English has pursued other languages down alleyways to beat them unconscious and riffle their pockets for new vocabulary.

  6. #6
    Registered User
    Join Date
    Dec 2001
    Posts
    849
    It's a sign of poor system administration, and/or Poor system planning/design. It looks as though the entire platform was developed on someones workstaion then the production environment was built around that.

    Zulu TZ > ALL TZ
    "What you've just said is one of the most insanely, idiotic things i've ever heard. At no point in your rambling, incoherant response were you even close to anything that could be considered a rational thought. Everyone in this room is now dumber for having listened to it. I award you NO points, and may god have mercy on your soul."

  7. #7
    Registered User
    Join Date
    Dec 2001
    Posts
    144
    well, if my history lessons are correct; EQ was built in a short time frame with no hopes of becoming to be any real successful product.

    I forget all the explicit details, but I do recall that EQ wasn't taken very lightly as a game and took many upon many of talks just to convince Varent to give it a try. EQ was a rush job that turned overly successful, beyond it's original projections (about 1000 fold is a good esitmate I think).

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

You may post new threads
You may post replies
You may post attachments
You may edit your posts
HTML code is Off
vB code is On
Smilies are On
[IMG] code is On