Add date-line crossing handling and an example of same