Add time updater, fix day offset bug