Fix timestamp parsing