html_url,issue_url,id,node_id,user,created_at,updated_at,author_association,body,reactions,performed_via_github_app,issue
https://github.com/pydata/xarray/issues/1329#issuecomment-863271758,https://api.github.com/repos/pydata/xarray/issues/1329,863271758,MDEyOklzc3VlQ29tbWVudDg2MzI3MTc1OA==,1492047,2021-06-17T14:08:54Z,2021-06-17T14:11:47Z,CONTRIBUTOR,"Hello,
Using the same code sample:
```
import numpy
import xarray
ds = xarray.Dataset(
{""a"": (""x"", [])},
coords={""x"": numpy.zeros(shape=0, dtype=""M8[ns]"")})
ds.to_netcdf(""/tmp/test.nc"")
xarray.open_dataset(""/tmp/test.nc"")
```
It works on xarray 0.17 but does not work anymore with xarray 0.18 & 0.18.2.
This [addition](https://github.com/pydata/xarray/blob/master/xarray/coding/times.py#L190-L193) seems to be responsible (coming from [this commit](https://github.com/pydata/xarray/commit/fbd48d4307502f7dbe8afa37b84df59e74407820)).","{""total_count"": 0, ""+1"": 0, ""-1"": 0, ""laugh"": 0, ""hooray"": 0, ""confused"": 0, ""heart"": 0, ""rocket"": 0, ""eyes"": 0}",,217216935