fix time handling for dst