fixed bug that showed up because of DST