localtime_r: fix Annex K usage