This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

GMT and offset.

Old posts that have not been replied to for several years.
Locked
s
sinapsi

GMT and offset.

Post by sinapsi »

Here the help from the eggdrop configuration:

# The offset setting specifies the time value to be added to the local
# time to get Coordinated Universal Time (UTC aka GMT). The offset is
# positive if the local timezone is west of the Prime Meridian and
# negative if it is east. The value (in hours) must be between -23 and
# 23. For example, if the timezone is UTC+1, the offset is -1.

So, if my GMT is +1 the offset is -1

I have a user with offset = -10
and with
set env(TZ) "$timezone $offset"
Commented out, so the offset is considered in the log timestamps too.

I cannot understand why there is a difference of 8 hours between my time and the user's time.

If my GMT is +1 and offset = -1
and
if his GMT is +10 with offset = -10

The time difference should be: 9 hours

But the time difference result to be of 8 hours:

System time: 10.00 [GMT + 1]
Bot time: 18.00 [GMT + 10]

Maybe could be the different setting of the solar hour?

Thnx
s
sinapsi

legal and solar hour

Post by sinapsi »

yes, that was the problem, I didn't consider that with the legal hour we are 1 hour ahead respect the UTC.
Locked