Skip to content

Commit

Permalink
Do not use Python3-only API.
Browse files Browse the repository at this point in the history
  • Loading branch information
alexamici committed Dec 28, 2018
1 parent e8bb3b5 commit 10c2b14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cfgrib/dataset.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,7 +447,7 @@ def build_dataset_components(
'cfgrib_version': __version__,
'cfgrib_open_kwargs': json.dumps(encoding),
'eccodes_version': eccodes.codes_get_api_version(),
'timestamp': timestamp or datetime.datetime.now().isoformat(timespec='seconds')
'timestamp': timestamp or datetime.datetime.now().isoformat().partition('.')[0]
}
history_in = '{timestamp} GRIB to CDM+CF via ' \
'cfgrib-{cfgrib_version}/ecCodes-{eccodes_version} with {cfgrib_open_kwargs}'
Expand Down

0 comments on commit 10c2b14

Please sign in to comment.