The International Date Line runs down the Pacific Ocean, roughly along the 180th meridian, and marks the place where the date changes. It is one of the most recognisable lines on a world map. It is also, in a strict legal sense, not a line at all: no international treaty defines it, no organisation owns it, and no single agreed legal definition fixes where it runs; its position on a map follows national time-zone decisions and cartographic convention, which is why different atlases draw it differently.
What actually exists
What exists instead is a set of national decisions. Each country chooses its own offset and its own daylight-saving rules, and the date line is simply the seam where those choices meet. Kiribati put itself at UTC+14; Samoa moved to UTC+13; Tonga is at +13; American Samoa is at −11. The line bends around them because it must, and the bends are drawn by cartographers to fit the offsets rather than by any authority to define the offsets.
There are conventions but no rulebook. Ships follow maritime practice: the date is usually changed at a convenient point in the voyage, often at midnight, and the officer of the watch records the chosen date in the log. Two ships passing within sight of each other may therefore be keeping different dates.
Why the line zigzags
The line's shape is a record of politics. It avoids the Aleutian Islands, so that all of Alaska shares a date. It swings east around Kiribati, so that the Line Islands are not a day behind the capital. It loops around Samoa and Tokelau, which moved in 2011, and around Fiji and Tonga, which stayed where they were. It is drawn on maps as a series of straight segments and right angles because that is easier to print, not because the ocean has corners.
For most of the world the line is irrelevant, which is why it has never needed a treaty. It matters to shipping, aviation, Pacific island states and anyone who has to schedule a meeting across it. The practical rule is simple: the date is whatever the local civil time says it is, and the local civil time is whatever the country in question has legislated.
What the line shows is that a great deal of international timekeeping rests on conventions that are not laws. The Greenwich meridian was adopted as the reference for longitude by the International Meridian Conference of 1884, through its resolutions. The date line has no comparable definition: it is the practical consequence of the offsets each country has chosen. Both are conventions that organise time and geography, but their legal foundations are different.