mIRC Home    About    Download    Register    News    Help

Print Thread
#179157 18/06/07 05:45 PM
Joined: Jun 2007
Posts: 933
5
5618 Offline OP
Hoopy frood
OP Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Hello all.

I searched the forums, but couldn't find anything regarding this 'bug'.
It seems the $gmt identifier doesn't actually obey GMT, but rather just follows GMT and BST (British Summer Time).
Obviously GMT never changes, but $gmt does. You can see for yourself with //echo -a $asctime($gmt), which will (should) report BST now (since Daylight Savings Time is in effect in most countries) and be off by one hour.
I realise the identifier follows the internal clock, but shouldn't it be able to determine if DST is in effect and adjust the value accordingly?

Thanks for your time.

5618 #179166 18/06/07 08:24 PM
Joined: Dec 2002
Posts: 503
B
Fjord artisan
Offline
Fjord artisan
B
Joined: Dec 2002
Posts: 503
So basically, you want '$gmt' to report 'UTC' time?

Joined: Jun 2007
Posts: 933
5
5618 Offline OP
Hoopy frood
OP Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933

Joined: Jun 2006
Posts: 508
D
Fjord artisan
Offline
Fjord artisan
D
Joined: Jun 2006
Posts: 508
Yes it should, GMT should not include DST.
mIRC knows if DST is in effect (the $daylight identifier) so IMHO it should account for that when calculating GMT. smile

Joined: Jun 2007
Posts: 933
5
5618 Offline OP
Hoopy frood
OP Offline
Hoopy frood
5
Joined: Jun 2007
Posts: 933
Originally Posted By: deegee
Yes it should, GMT should not include DST.
mIRC knows if DST is in effect (the $daylight identifier) so IMHO it should account for that when calculating GMT.

Oh, thanks, that of course provides a workaround with $calc($gmt - $daylight)
Still, a fix would be nice. wink


Link Copied to Clipboard