jord-jd/dates-timezone-conversion-trait
A Laravel trait for Eloquent models that simplifies timezone conversion for date and time attributes, helping keep stored and displayed values consistent without repetitive conversion code in your models.
Architecture fit
$dates / casts handling.$dates arrays and modern date/datetime casts, which means it can be adopted incrementally per model rather than requiring a schema-wide rewrite.Integration feasibility
Technical risk
$model->starts_at->addHour() and relied on the mutation sticking will now silently no-op. Silent data-loss-shaped bugs are the worst failure class here.Key questions
Auth, or configurable? What is the fallback for unauthenticated requests, queued jobs, console commands, and API tokens?Stack fit
Migration path
v3.1.0 explicitly; do not float on ^3.Compatibility
Carbon::setTestNow-style test helpers.Sequencing
Maintenance
Support
Scaling
Failure modes
DB:: writes and bulk updates bypass casts entirely, silently storing unconverted values alongside converted ones.null becoming 1970-01-01 or throwing on cast.Ramp-up
How can I help you explore Laravel packages today?