Bug fix and optimization: use UTC time instead of local.