id,summary,reporter,owner,description,type,status,milestone,component,version,severity,resolution,keywords,cc 693,Error in _DateTimeFormat() function,Heinz Stege ,Gary,"There seems to be a typo in the source code of the _DateTimeFormat() function (in the date.au3 file). _DateTimeFormat() leeds to an unexpected result, if a) the time separator (in regional options) is ""/"" and b) the date separator is not equal ""/"" (e.g. ""-"") In this (very seldom and non meaningful) case, the result looks something like: yyyy-MM-dd hh-mm-ss instead of yyyy-MM-dd hh/mm/ss Nevertheless it may be a good idea, to correct in: {{{ ; Format DATE If $sTempDate <> """" Then ; Const $LOCALE_SDATE = 0x1D ; date separator $lngX = DllCall(""kernel32.dll"", ""long"", ""GetLocaleInfo"", ""long"", 0x400, ""long"", 0x1D, ""str"", """", ""long"", 255) If Not @error And $lngX[0] <> 0 Then ; ; This is the line to change: ;$sTempTime = StringReplace($sTempTime, ""/"", $lngX[3]) ; ; This is the new line: $sTempDate = StringReplace($sTempDate, ""/"", $lngX[3]) EndIf }}} Thanks a lot to all AutoIT people for this nice tool. Heinz ",Bug,closed,3.2.13.12,Standard UDFs,3.2.12.1,Blocking,Fixed,,