This is working good, but gives a problem when changing from summer to wintertime and the other way around.
Is this a windows only behavior?
What do you think of these two workarounds?
The second workaround must have an OS check if the behavior is only on a Windows system.
Instead of comparing:
Code: Select all
if ($filemtime_database == $filemtime)Code: Select all
if (CompareDaylightSavingsTime($filemtime_database == $filemtime))
function CompareDaylightSavingsTime($t1, $t2)
{
if ($t1 == ($t2 - 3600) || $t1 == $t2 || $t1 == ($t2 + 3600))
return true;
else
return false;
}Code: Select all
$filemtime += data('z', time());
if (date('I', time()))
$filemtime -= 3600;