each dealer sets time differently. Usually between GMT and GMT+3.

You are missing trading opportunities:
- Free trading apps
- Over 8,000 signals for copying
- Economic news for exploring financial markets
Registration
Log in
You agree to website policy and terms of use
If you do not have an account, please register
I thought that the server always reports time as GMT, but I am getting a 9-hour difference betwen my TimeLocal - Vancouver, Canada, which is in the Pacific Standard Time zone, which is the same as GMT(-8) - and the server time (TimeCurrent()). That would mean that the time I am getting from the server is not a GMT time but it's own local time.
But even if the local time of the server is returned - again, MetaQuotes Demo server (AlpariUK-Demo) should be in the GMT zone (it says it's UK, would be logical to assume it is in the UK somwehere, correct?), so again I'm looking for a 8-hour difference and yet I am getting 9 hours... :(
I thought it could it be something is messsed up with DST and where MQL gets the local time on my computer? But how can it be - it displays it properly when I use Print to print it...
help please, Here's the snippet I am running:
this is the output:
2007.01.30 19:58:07 TestTimeZone EURUSD,M1: removed
2007.01.30 19:58:07 TestTimeZone EURUSD,M1: deinitialized
2007.01.30 19:58:00 TestTimeZone EURUSD,M1: Time Diff with server is : -9 hours
2007.01.30 19:58:00 TestTimeZone EURUSD,M1: Current Server time: 1170219480
2007.01.30 19:58:00 TestTimeZone EURUSD,M1: Current Local time: 1170187080
2007.01.30 19:58:00 TestTimeZone EURUSD,M1: Current Server time: 2007. 01. 31 04:58:00
2007.01.30 19:58:00 TestTimeZone EURUSD,M1: Current Local time: 2007. 01.30 19:58:00
2007.01.30 19:57:58 TestTimeZone EURUSD,M1: initialized
2007.01.30 19:57:50 TestTimeZone EURUSD,M1: loaded successfully
thanks