SYS-fix-37a8.25: Fixed various issues with local time calculations