Timing Code Suggestion

 

I have coded an EA to place order at specific hour (ServerTradetTime) during the day. I want to have both Server and Local TradeTime on chart via Comment() function. The following code works OK, but I would apprciate if someone could advise if alternative way to convert a ServerTradeTime to LocalTradeTime.

extern int ServerTradeTime=15; // Server time to place order.
extern int TimeDifference=7; // Time difference from Server to Local time. This is FXDD to US EST.
 
int LocalTradeTime;
LocalTradeTime=ServerTradeTime-TimeDifference;
if(LocalTradeTime<0) LocalTradeTime=24+LocalTradeTime;
Comment("Server Time = ",TimeToStr(TimeCurrent(),TIME_MINUTES),
"\nServer Trade Time = ",ServerTradeTime,":00","\nLocal Trade Time = ",LocalTradeTime,":00");

Thank youi in advance,

Wackena