Timezone / UTC conversion issues pre-Railway Metal
rossfreedman
PROOP

8 months ago

In my Python/Postgres application on Railway, I recently completed a timezone migration that involved converting a DATE column to TIMESTAMPTZ and enforcing a constraint to store all dates as midnight UTC. During the migration, I ran into several issues including existing data violating the UTC constraint, application code inconsistencies with date formatting, and PostgreSQL session timezone defaults interfering with comparisons. After extensive debugging, I resolved it by standardizing on UTC conversions, updating queries to explicitly compare in UTC, and fixing date parsing in the application logic.

Now that Railway is moving to Metal, do I need to worry about any regressions or differences in how session timezones or TIMESTAMPTZ are handled?

Specifically, will the underlying system timezone, environment variables, or Postgres configuration differ from the current setup and affect how timestamps behave?

Solved

5 Replies

Railway
BOT

8 months ago

Hello!

We've escalated your issue to our engineering team.

We aim to provide an update within 1 business day.

Please reply to this thread if you have any questions!

Status changed to Awaiting User Response Railway 8 months ago


sarahkb125
EMPLOYEE

8 months ago

Hi there - I see you are 100% on Railway Metal now. Are you still running into issues, or more so being proactive (during your app transition)?


Railway
BOT

8 months ago

✅ The internal ticket Timezone differs on railway metal has been marked as completed.


sarahkb125

Hi there - I see you are 100% on Railway Metal now. Are you still running into issues, or more so being proactive (during your app transition)?

rossfreedman
PROOP

8 months ago

I was just being proactive. Thank you.


Status changed to Awaiting Railway Response Railway 8 months ago


ray-chen
EMPLOYEE

8 months ago

Nothing to worry about there slightly_smiling_face emoji All system time on Railway is always standardized in UTC.


Status changed to Awaiting User Response Railway 8 months ago


Status changed to Solved ray-chen 8 months ago


ray-chen

Nothing to worry about there All system time on Railway is always standardized in UTC.

rossfreedman
PROOP

8 months ago

Thank you


Status changed to Awaiting Railway Response Railway 8 months ago


Status changed to Solved sarahkb125 8 months ago


Loading...