Skip to content

Commit

Permalink
Merge pull request #260 from sentinel-hub/fix/wms-without-timerange
Browse files Browse the repository at this point in the history
Only include date in time without range format
  • Loading branch information
dgostencnik authored Feb 15, 2024
2 parents a63cbd3 + b86ad46 commit 5554dd5
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 5554dd5

Please sign in to comment.