0

I have a problem from php time . On my centos 7 server I had installed directadmin and I disabled daylight on centos but I dont know how to disable daylight on php.ini . please help me

I set timezone Asia/tehran in php.ini but i want when use

php -r "date_default_timezone_set('Asia/Tehran'); echo date('H:i');"

show me current server time.

Toby Allen
  • 10,997
  • 11
  • 73
  • 124
  • Can you explain more clearly about how you "disabled daylight" (by which I presume you mean "disabled daylight saving time", not that you like your room really dark)? PHP gets its time zone data from an installed database, perhaps what you're actually asking is how to update that for Iran's recent policy change? – IMSoP Apr 09 '23 at 13:54
  • Excuse me for my English. In fact, I mean, this is because of the new policy in Iran, how to set the clock in php.ini to display correctly – Vahid Ghasemi Apr 09 '23 at 13:58
  • Ok, then as I say, this is not about a *setting*, but something you need to *update* on your system. Try searching for "update timezone database". – IMSoP Apr 09 '23 at 15:35
  • Please clarify your specific problem or provide additional details to highlight exactly what you need. As it's currently written, it's hard to tell exactly what you're asking. – Community Apr 09 '23 at 21:25

0 Answers0