Log Time difference

I have checked my linux servers, and the date function gives back the right time, the filemaker server logs through the admin console or Otto console are right too, however the Otto log, like info or error, in my case have 2 hours difference.

Our time zone now, summer time, is Europe/Madrid

hmm… That’s a pretty interesting one.

Could run this in a terminal on your computers

node -e 'console.log(new Date().toLocaleTimeString())'

That should print out the local time for those computers.

You may need to run that from within the /FileMaker Server/node/bin folder.

That does it say?

Todd

node -e 'console.log(new Date().toLocaleTimeString())'
8:03:16 PM

I just restarted otto to force a log entry

|2025-06-08T18:01:59.772Z|info|Debug logging disabled|
|---|---|---|
|2025-06-08T18:01:59.773Z|info|Reverse Proxy already installed|
|2025-06-08T18:02:00.450Z|info|License status: valid|
|2025-06-08T18:02:11.235Z|info|web app login successful|

Well that is odd. I am not sure what could cause that.

We’ll have to look into it.

Todd

I will check in the rest of my servers. I am not really sure, but I think is all of them

Hey @marcoaperez ,

The OttoFMS logs are in UTC time, which would be 2 hours off of Madrid.

-Kyle

Yes, I understand UTC, but I dont want the UTC time, I would like all my logs in the same timezone.

I forgot that we put them in UTC. There is a good reason for that. Sometimes we combine logs from different servers, and if they were in different timezones, then they won’t line up properly.

Todd

1 Like

Ok, I wish it was an option.

Thanks.