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
{{ message }}
This repository has been archived by the owner on Mar 9, 2024. It is now read-only.
I'm in Prague,Czech Republic (UTC+1) with correct php datime zone Europe/Belgrade, but PHP Manager suggests me that I should have Asia/Kuwait, which is UTC+3.
The problem seems to be in PhpConfigHelper.GetPHPTimeZone:
if (localZone.IsDaylightSavingTime(currentTime))
{
DaylightTime daylightTime = localZone.GetDaylightChanges(currentTime.Year);
if (offset >= TimeSpan.Zero)
{
offset += daylightTime.Delta;
}
else
{
offset -= daylightTime.Delta;
}
}
I think it should always subtract daylightTime.Delta from offset to get correct UTC offset without dayling saving time. In my case offset would be correctly 1, not 3.
Hello,
I'm in Prague,Czech Republic (UTC+1) with correct php datime zone Europe/Belgrade, but PHP Manager suggests me that I should have Asia/Kuwait, which is UTC+3.
The problem seems to be in PhpConfigHelper.GetPHPTimeZone:
if (localZone.IsDaylightSavingTime(currentTime))
{
DaylightTime daylightTime = localZone.GetDaylightChanges(currentTime.Year);
if (offset >= TimeSpan.Zero)
{
offset += daylightTime.Delta;
}
else
{
offset -= daylightTime.Delta;
}
}
I think it should always subtract daylightTime.Delta from offset to get correct UTC offset without dayling saving time. In my case offset would be correctly 1, not 3.
Thank you,
Miloslav
Proposed
#1390 | Created 2012-10-17 | Updated 2013-02-21
The text was updated successfully, but these errors were encountered: