mirror of
https://github.com/archtechx/laravel-tips.git
synced 2025-12-12 13:24:03 +00:00
Week 9 of 2022
This commit is contained in:
parent
7492f1b9cf
commit
796acab2e2
10 changed files with 1343 additions and 1011 deletions
|
|
@ -0,0 +1,13 @@
|
|||
---
|
||||
title: 'Use Carbon''s setTimezone() and shiftTimezone() methods'
|
||||
tweet_id: '1499806904515584001'
|
||||
thread_slug: weekly-thread-2022-09
|
||||
author_username: danjharrin
|
||||
images:
|
||||
- 'https://pbs.twimg.com/media/FMw6UNgXMAYuWrS.jpg'
|
||||
created_at: 2022-03-04T18:00:05+00:00
|
||||
slug: use-carbons-settimezone-and-shifttimezone-methods
|
||||
---
|
||||
Over the past few years, I've worked on some large apps that deal with events in different timezones. This can end up being quite confusing, as best practice is always to store dates in UTC.
|
||||
|
||||
That's where Carbon's `shiftTimezone()` and `setTimezone()` methods can help you out! ⬇️
|
||||
Loading…
Add table
Add a link
Reference in a new issue