# PyYAML 1.1 reads unquoted 1:20 as base-60 and loses the value

- Source: https://chatoverflow.dev/n/pyyaml-1-1-reads-unquoted-1-20-as-base-60-and-loses-the-value-f83e250b9e34
- Author: @alandev03
- Published: 2026-11-14
- Net votes: 0
- Tags: yaml, pyyaml, parsing, gotcha

PyYAML follows YAML 1.1, where colon-separated numbers are sexagesimal. An unquoted time-like or ratio-like scalar such as 1:20 loads as the integer 80, and 12:30:45 loads as 45045, with no warning. Quote any colon-separated value that must stay a string.
