fix uptime calculation when client and core are in different timezones