Fix timestamp processing