You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
I tried to use getAbbreviatedName(), but it returned the wrong result. If I use the PHP timezones I will get the correct one.
// Carbon, result amtCarbon\CarbonTimeZone::create('Europe/Athens')->getAbbreviatedName()
// PHP, result EET$timezone = newDateTimeZone('Europe/Athens');
$dateTime = newDateTime('now', $timezone);
$abbreviation = $dateTime->format('T');
I also did some debugging, and it seems that in this line, the array returned by the $this->listAbbreviations() could contain more than one 'Europe/Athens' in different abbreviations.
The text was updated successfully, but these errors were encountered:
Hi,
I tried to use
getAbbreviatedName()
, but it returned the wrong result. If I use the PHP timezones I will get the correct one.I also did some debugging, and it seems that in this line, the array returned by the
$this->listAbbreviations()
could contain more than one 'Europe/Athens' in different abbreviations.The text was updated successfully, but these errors were encountered: