Timezone / UTC conversion issues pre-Railway Metal
rossfreedman
PROOP

a year 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

a year 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 11 months ago


sarahkb125
EMPLOYEE

a year 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

a year 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

a year ago

I was just being proactive. Thank you.


Status changed to Awaiting Railway Response Railway 11 months ago


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


Status changed to Awaiting User Response Railway 11 months ago


Status changed to Solved ray-chen 11 months ago


ray-chen

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

rossfreedman
PROOP

a year ago

Thank you


Status changed to Awaiting Railway Response Railway 11 months ago


Status changed to Solved sarahkb125 11 months ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...