@@ -120,7 +120,8 @@ export default function mapLayerBuilder(config, cache, store) {
120120
121121 // Don't key by time if this is a static layer
122122 if ( def . period ) {
123- date = util . toISOStringSeconds ( util . roundTimeOneMinute ( options . date ) ) ;
123+ const isSubdaily = def . period === 'subdaily' ;
124+ date = util . toISOStringSeconds ( util . roundTimeOneMinute ( options . date ) , ! isSubdaily ) ;
124125 }
125126 if ( isPaletteActive ( def . id , activeGroupStr , state ) ) {
126127 style = getPaletteKeys ( def . id , undefined , state ) ;
@@ -373,7 +374,7 @@ export default function mapLayerBuilder(config, cache, store) {
373374 tileSize : tileSize [ 0 ] ,
374375 } ;
375376
376- const urlParameters = `?TIME=${ util . toISOStringSeconds ( layerDate ) } ` ;
377+ const urlParameters = `?TIME=${ util . toISOStringSeconds ( layerDate , ! isSubdaily ) } ` ;
377378 const sourceURL = def . sourceOverride || configSource . url ;
378379 const sourceOptions = {
379380 url : sourceURL + urlParameters ,
@@ -421,6 +422,7 @@ export default function mapLayerBuilder(config, cache, store) {
421422 let extent ;
422423 let start ;
423424 let res ;
425+ const isSubdaily = def . period === 'subdaily' ;
424426
425427 const source = config . sources [ def . source ] ;
426428 extent = selectedProj . maxExtent ;
@@ -459,7 +461,7 @@ export default function mapLayerBuilder(config, cache, store) {
459461 if ( day && def . wrapadjacentdays ) {
460462 date = util . dateAdd ( date , 'day' , day ) ;
461463 }
462- urlParameters = `?TIME=${ util . toISOStringSeconds ( util . roundTimeOneMinute ( date ) ) } ` ;
464+ urlParameters = `?TIME=${ util . toISOStringSeconds ( util . roundTimeOneMinute ( date ) , ! isSubdaily ) } ` ;
463465
464466 const sourceOptions = {
465467 url : source . url + urlParameters ,
0 commit comments