I am from Austria - my windows default settings for time, ...:palinka wrote: ↑2019-11-23 14:34I noticed there's a space at the beginning:
The script reads the date and time from the firewall log. So the formatting problem could be coming from the firewall log and not necessarily from powershell. What are the date and time formats in the firewall log (localized in Germany)?Code: Select all
VALUES (' 2019-11-23 08:29:31',
Here are some lines from my firewall log:
Code: Select all
2019-11-23 12:53:23 DROP TCP 193.56.28.101 000.000.000.000 59653 25 48 S 4232364007 0 8192 - - - RECEIVE
2019-11-23 12:56:17 DROP TCP 193.56.28.101 000.000.000.000 56217 25 52 S 3342926694 0 8192 - - - RECEIVE
2019-11-23 12:56:20 DROP TCP 193.56.28.101 000.000.000.000 56217 25 52 S 3342926694 0 8192 - - - RECEIVE
2019-11-23 12:56:26 DROP TCP 193.56.28.101 000.000.000.000 56217 25 48 S 3342926694 0 8192 - - - RECEIVE
2019-11-23 12:57:01 DROP TCP 185.234.219.102 000.000.000.000 57140 25 52 S 404735548 0 8192 - - - RECEIVE
2019-11-23 12:57:04 DROP TCP 185.234.219.102 000.000.000.000 57140 25 52 S 404735548 0 8192 - - - RECEIVE