Fixed dateline handling.