Page 1 of 1

FileZilla Server log timestamp format

Posted: 2019-11-11 14:43
by impro
Hi,

Using FileZilla Server 0.9.60 beta. We recently changed servers and installed FileZilla Server on the new server. It seems that the log file timestamp format has now changed from mm/dd/yyyy to yyyy/mm/dd. I have played with the Windows date/time settings and Windows is set in the mm/dd/yyyy format, however FileZilla Server keeps writing events to its logs in yyyy/mm/dd format. The problem is this is breaking my log parser application (Sawmill 8 ) which only supports the mm/dd/yyyy format.

Examples:

Old server log file:
(000027) 10/1/2019 0:03:58 AM - (not logged in) (31.148.xxx.xxx)> Connected on port 21, sending welcome message...

New server log file:
(000034) 2019/10/02 0:14:07 AM - (not logged in) (169.0.xxx.xxx)> Connected on port 21, sending welcome message...

No matter what format I choose in Windows, FileZilla Server sticks to the yyyy/mm/dd format. :?

How does the software decide what format to use for the date in the log files? What do I need to change to get the date format back to what I need?

Thank you in advance.

Re: FileZilla Server log timestamp format

Posted: 2019-11-11 18:40
by botg
It's using the date/time format of the locale the Windows user account the FileZilla Server service is run under. The default account is SYSTEM.

Technically it's calling the GetTimeFormat and GetDateFormat Windows functions with LOCALE_USER_DEFAULT as first argument.

What the format is can be changed somewhere in Windows, though I would need to use Google.

Re: FileZilla Server log timestamp format

Posted: 2019-11-12 01:26
by boco
If you change region settings in your Windows, you usually do that only for your user account.

Open the advanced region settings (in the old Control Panel, in case you use a Windows 10-based OS), change to the Administrative tab and apply your current user settings to "Welcome screen and system accounts."
2019-11-12 02_24_27-Welcome screen and new user accounts settings.jpg
2019-11-12 02_24_27-Welcome screen and new user accounts settings.jpg (58.93 KiB) Viewed 4376 times

Re: FileZilla Server log timestamp format

Posted: 2020-01-06 14:22
by impro
Thank you, that did it!