Custom time zone in PHP/Laravel
Asked Answered
S

1

5

I got issue following by cancelation of using DST (Daylight Saving Time) in my country. This change doesn't appear in php library so I cannot use default time zones because +3:30 is not support now. Also timezone like GMT-3:30 is not declared. Any solution ?

Unless Carbon by itself accept setTimezone("+03:30") but I am looking for a solution to change timezone in all activities of my application

Shepherd answered 21/3, 2023 at 21:55 Comment(3)
I assume you're referring to Iran Standard Time?Purpure
Yes, How can i set that in my laravel application?Shepherd
Maybe #3564978 will helpOrtiz
S
7

Problem solved by updating timezone db library using below command:

pecl upgrade timezonedb

And then it need to add this line to php.ini file:

extension=timezonedb.so
Shepherd answered 21/3, 2023 at 23:7 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.