timezone of trade sever

 

Hi Guys,


How to know timezone of trade sever? or time GMT offset for the sever?

Currently i can calculate this based on local time. but EA may be used in different timezone for different trade sever or moved from one country to another or, even local time is not set correctly,so it's not best solution for this.

Is there any other method to get this? if no, can you escalate this as a feature request? to add TimeZoneSever() or TimeGMTOffset(sever) for trade sever.


another question, is timecurrent() different when MT5 client is forced to connect different AP of MT5 sever in different country? only one server time for one broker?


thanks.

 

 Please read documentation closely. https://www.mql5.com/en/docs/dateandtime/timetradeserver

 You can compare time of Trade server with GMT (https://www.mql5.com/en/docs/dateandtime/timegmt)

Documentation on MQL5: Date and Time / TimeTradeServer
  • www.mql5.com
Date and Time / TimeTradeServer - Documentation on MQL5
 
stringo:

 Please read documentation closely. https://www.mql5.com/en/docs/dateandtime/timetradeserver

 You can compare time of Trade server with GMT (https://www.mql5.com/en/docs/dateandtime/timegmt)

Stringo,

How dose detect where the client terminal is running? by "Regional Options" setting in windows? what will happen if the setting is wrong?

 

TimeLocal

TimeGMT

If regional settings are wrong nobody can help you

Reason: