1

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?

Mohammad
  • 21,175
  • 15
  • 55
  • 84
Surendar K
  • 359
  • 1
  • 6
  • 11

2 Answers2

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
0

You can use this:

echo date_default_timezone_get()

Reference

devpro
  • 16,184
  • 3
  • 27
  • 38
Balasaheb Bhise
  • 235
  • 1
  • 7