Skip to content

Commit

Permalink
BUG: fix bug that all TIMESTAMP fileds become 00 secconds.
Browse files Browse the repository at this point in the history
  • Loading branch information
rhoboro committed Mar 12, 2018
1 parent 369959a commit bfcef95
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pandas_gbq/_load.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def encode_chunk(dataframe):
csv_buffer = six.StringIO()
dataframe.to_csv(
csv_buffer, index=False, header=False, encoding='utf-8',
date_format='%Y-%m-%d %H:%M')
date_format='%Y-%m-%d %H:%M:%S.%f')

# Convert to a BytesIO buffer so that unicode text is properly handled.
# See: https://github.com/pydata/pandas-gbq/issues/106
Expand Down

0 comments on commit bfcef95

Please sign in to comment.