Skip to content

Commit

Permalink
Only include date in time without range format
Browse files Browse the repository at this point in the history
  • Loading branch information
dgostencnik committed Feb 14, 2024
1 parent a63cbd3 commit b86ad46
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/layer/wms.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,7 @@ function getQueryParams(
}

if (!params.fromTime) {
queryParams.time = moment.utc(params.toTime).format('YYYY-MM-DDTHH:mm:ss') + 'Z';
queryParams.time = moment.utc(params.toTime).format('YYYY-MM-DD');
} else {
queryParams.time = `${moment.utc(params.fromTime).format('YYYY-MM-DDTHH:mm:ss') + 'Z'}/${moment
.utc(params.toTime)
Expand Down

0 comments on commit b86ad46

Please sign in to comment.