Interestingly, the date line wasn't always where it is now. For example if you look at the tz database it has Asia/Manila with an offset of -15:56 until 1844; that's because the Philippines were actually colonized from Mexico, so they kept the same day count as the Americas. (
https://webspace.science.uu.nl/~gent0113/idl/idl_philippines...). But as they came to be more integrated with their geographical neighbors they switched to counting the days like them.
Similarly tz has time zones as far east as +15:13:42 for Metlakatla in far south eastern Alaska, until 1867, since Alaska was settled from Russia. I think these are basically the furthest east and west the date line ever went (although maybe the Russians made it further south and east along the west coast of North America?)