StrToTime()

 

According to documentation:

https://docs.mql4.com/convert/StrToTime

datetime StrToTime(string value)
Converts string in the format "yyyy.mm.dd hh:mi" to datetime type (the amount of seconds that have passed since 1 Jan., 1970).
Parameters:
value - String value of date/time format as "yyyy.mm.dd hh:mi".
Sample:
  datetime var1;
  var1=StrToTime("2003.8.12 17:35");
  var1=StrToTime("17:35");      // returns the current date with the given time
  var1=StrToTime("2003.8.12");  // returns the date with the midnight time of "00:00"

I noticed that in the case var1=StrToTime("17:35"); the current local (PC) date is added and not MT4 date. That should have been documented.

It is a potential source of bugs.

Reason: