FileZilla Server log timestamp format

Need help with FileZilla Server? Something does not work as expected? In this forum you may find an answer.

Moderator: Project members

Post Reply
Message
Author
impro
500 Command not understood
Posts: 2
Joined: 2019-11-11 14:21

FileZilla Server log timestamp format

#1 Post by impro » 2019-11-11 14:43

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.

User avatar
botg
Site Admin
Posts: 35558
Joined: 2004-02-23 20:49
First name: Tim
Last name: Kosse

Re: FileZilla Server log timestamp format

#2 Post by botg » 2019-11-11 18:40

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.

User avatar
boco
Contributor
Posts: 26934
Joined: 2006-05-01 03:28
Location: Germany

Re: FileZilla Server log timestamp format

#3 Post by boco » 2019-11-12 01:26

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 4361 times
No support requests over PM! You will NOT get any reply!!!
FTP connection problems? Please read Network Configuration.
FileZilla connection test: https://filezilla-project.org/conntest.php
FileZilla Pro support: https://customerforum.fileZilla-project.org

impro
500 Command not understood
Posts: 2
Joined: 2019-11-11 14:21

Re: FileZilla Server log timestamp format

#4 Post by impro » 2020-01-06 14:22

Thank you, that did it!

Post Reply