Valhalla Legends Archive

Programming => Battle.net Bot Development => Topic started by: Barabajagal on May 14, 2008, 04:50 AM

Title: User Data Last Logon/Logoff
Post by: Barabajagal on May 14, 2008, 04:50 AM
The values returned by System\Last Logon and System\Last Logoff don't seem correct at all... Is this explained or documented anywhere? I get things like...
Quote[02:29:00 AM] Last Logoff: Wed, May 14, 2008 at 2:31:26 AM
[02:29:00 AM] Last Logon: Wed, May 14, 2008 at 2:31:23 AM
And it just... sorta bothers me.
Title: Re: User Data Last Logon/Logoff
Post by: Spht on May 14, 2008, 08:36 AM
Quote from: Andy on May 14, 2008, 04:50 AM
The values returned by System\Last Logon and System\Last Logoff don't seem correct at all... Is this explained or documented anywhere? I get things like...
Quote[02:29:00 AM] Last Logoff: Wed, May 14, 2008 at 2:31:26 AM
[02:29:00 AM] Last Logon: Wed, May 14, 2008 at 2:31:23 AM
And it just... sorta bothers me.

Maybe your bot is confusing logoff results with logon?

If you're asking about clock synchronization (which is something i know you're obsessed about), then that's normal and isn't something you should worry about unless it's off by more than 30 minutes...

I just reconnected on uswest and:

[11:00am] System\Last Logon = 2008-May-14 13:32:20 UTC [0x01C8B5C6EF6B5540]
[11:00am] System\Last Logoff = 2008-May-14 13:32:16 UTC [0x01C8B5C6ED4E1F72]

Appears to be ~UTC+00:02 at the moment
Title: Re: User Data Last Logon/Logoff
Post by: Barabajagal on May 14, 2008, 02:52 PM
Ya, I switched them... But it's still wrong:
Quote[12:49:52 PM] Last Logon: Wed, May 14, 2008 at 12:52:19 PM
[12:49:52 PM] Last Logoff: Wed, May 14, 2008 at 2:58:26 AM
Shouldn't the last logon be before the last logoff?
Title: Re: User Data Last Logon/Logoff
Post by: Spht on May 14, 2008, 02:55 PM
Quote from: Andy on May 14, 2008, 02:52 PM
Ya, I switched them... But it's still wrong:
Quote[12:49:52 PM] Last Logon: Wed, May 14, 2008 at 12:52:19 PM
[12:49:52 PM] Last Logoff: Wed, May 14, 2008 at 2:58:26 AM
Shouldn't the last logon be before the last logoff?

Not unless you're offline...
Title: Re: User Data Last Logon/Logoff
Post by: SteelSide on May 27, 2008, 10:42 AM
Quote from: Andy on May 14, 2008, 02:52 PM
Ya, I switched them... But it's still wrong:
Quote[12:49:52 PM] Last Logon: Wed, May 14, 2008 at 12:52:19 PM
[12:49:52 PM] Last Logoff: Wed, May 14, 2008 at 2:58:26 AM
Shouldn't the last logon be before the last logoff?

Correct. If you connect to bnet with your wc3 client, play for an hour or so, and then logoff, you will see that when you log back in, your login time was 1 hour ago :>
Title: Re: User Data Last Logon/Logoff
Post by: Barabajagal on May 27, 2008, 01:03 PM
You gotta be kidding... Man, bnet's broken.
Title: Re: User Data Last Logon/Logoff
Post by: Spht on May 27, 2008, 01:17 PM
Quote from: SteelSide on May 27, 2008, 10:42 AM
Correct. If you connect to bnet with your wc3 client, play for an hour or so, and then logoff, you will see that when you log back in, your login time was 1 hour ago :>

Quote from: Andy on May 27, 2008, 01:03 PM
You gotta be kidding... Man, bnet's broken.

No...  i thought we settled this topic already.  the system\last logon record is updated when you successfully log on to your account.  steelside is likely referring to the message you get when you log on to battle.net, which is your account's last logon prior to the update