Skip to content

Commit b86ad46

Browse files
committed
Only include date in time without range format
1 parent a63cbd3 commit b86ad46

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/layer/wms.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ function getQueryParams(
158158
}
159159

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

0 commit comments

Comments
 (0)