fixed issue with the date in the creation of netcdf files