fix timestamp parsing