use explicit str format for times when serializing