what is the output of writeln(LongTimeFormat.LongTimeFormat);Maybe it get's reset somewhere?
It is a typo: writeln(LongTimeFormat)