Skip to main content

I'm running FME Server 2019.2 in Docker Swarm using a fairly standard compose file. In the past, we have had some minor issues with time synching, and the containers believing they were in UTC. Most of that has been resolved, however, we noticed today that we are unable to get a local timestamp generated from within a workspace, even though FME server logs in local time, and all of the containers are pulling time from their host.

Using date, echo /etc/timezone or $TZ all return PST, however the workspace always returns UTC.

 

I've got a volume on all our containers to use local host's timezone (/etc/localtime:/etclocaltime:ro) with no effect. Does anyone know what else I can look at to fix this?

 

To be clear - all of our job schedules run localtime, but when trying to use date/time functions inside a workspace, UTC and localtime are the same according to FME.

 

Hi @mconway,

The containers are indeed all running in UTC. I talked to the developers and we created a ticket to look into why attaching the volume (/etc/localtime:/etclocaltime:ro) doesn't work.

I'll update here once the developers are looking into this.

 

 

Regarding the schedules and log files:

 

The FME Server Web UI appears to pick up the timezone of your browser and convert the timestamps in the log files, when viewed in the UI, on the fly. If you download a log file and open it I would expect the timestamps to be in UTC. The same is true for the schedules. This way your scheduled jobs run correctly in your local timezone, but the actual values in the backend are stored in UTC.

 

 

I hope this helps.

Hi ​@gerhardatsafe did this issue ever get picked up/resolved?

I am facing the same problem, specifically with the workspace not able to determine what the local time is and only ever returning UTC time.

It appears as though my other modifications to timezone stick, as if I query the /info endpoint on the FME Flow REST API, it returns the correct timezone I’m looking for (Australia/NSW). It looks to be more specifically with the engine.

I have tried both with attaching the volume and setting via environment variable.

Cheers


Reply