Open in app
Home
Notifications
Lists
Stories

Write
Alexis
Alexis

Home

Dec 11, 2020

I almost messed up timestamptz in Laravel

Why use timestamptz columns instead of timestamp? If you’re using Postgres, it’s recommended. Check out the very informative “Don’ t Do This” page in the Postgres wik (https://wiki.postgresql.org/wiki/Don%27t_Do_This#Don.27t_use_timestamp_.28without_time_zone.29). Laravel supports timestamptz columns in migrations via $table->timestampTz('example');. However, if that is all you do, your data may silently be stored incorrectly…

Laravel

2 min read

I almost messed up timestamptz in Laravel
I almost messed up timestamptz in Laravel
Alexis

Alexis

Help

Status

Writers

Blog

Careers

Privacy

Terms

About

Knowable