I know using date('T')
will give current timezone of server in abbreviation ex: IST
. I want full form of it. Ex: "India Standard Time" or "Eastern Standard Time".. etc. How will i acheive this in PHP
? Is there any method to do it in PHP
?
Asked
Active
Viewed 82 times
1

Mohammad
- 21,175
- 15
- 55
- 84

Surendar K
- 359
- 1
- 6
- 11
2 Answers
1
As mentioned in php doc, T
return timezone abbreviation but you need to use e
that return timezone identifier

Mohammad
- 21,175
- 15
- 55
- 84
-
`e` will return the timezone like `Asia/Kolkatta`. But i need `India Standard Time` – Surendar K Oct 01 '18 at 14:28
-
@SurendarK I think it isn't php full format as you want. Check http://php.net/manual/en/timezones.asia.php – Mohammad Oct 01 '18 at 14:40