Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions config/default/common/config/wv.json/defaults.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
"projection": "geographic",
"startingLayers": [
{
"id": "MODIS_Terra_CorrectedReflectance_TrueColor"
"id": "MODIS_Terra_CorrectedReflectance_TrueColor",
"hidden": "true"
},
{
"id": "MODIS_Aqua_CorrectedReflectance_TrueColor",
Expand All @@ -14,8 +15,7 @@
"hidden": "true"
},
{
"id": "VIIRS_NOAA20_CorrectedReflectance_TrueColor",
"hidden": "true"
"id": "VIIRS_NOAA20_CorrectedReflectance_TrueColor"
},
{
"id": "VIIRS_NOAA21_CorrectedReflectance_TrueColor",
Expand Down
2 changes: 1 addition & 1 deletion e2e/features/image-download/time-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ test.afterAll(async () => {
})

test('Image for today', async () => {
const url = await joinUrl(startParams, '&now=2018-06-01T3')
const url = await joinUrl(startParams, '&now=2018-06-01T7')
await page.goto(url)
await closeModal(page)
await openImageDownloadPanel(page)
Expand Down
10 changes: 5 additions & 5 deletions e2e/features/timeline/timeline-mobile-test.spec.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,31 +20,31 @@ test.afterAll(async () => {
await page.close()
})

test('date.mob.init.2a: Before 3:00 UTC: load yesterdays date', async () => {
test('date.mob.init.2a: Before 7:00 UTC: load yesterdays date', async () => {
const { mobileDatePickerSelectBtn } = selectors
const queryString = 'http://localhost:3000/?now=2013-03-15T0'
await page.goto(queryString)
await closeModal(page)
await expect(mobileDatePickerSelectBtn).toContainText('2013 MAR 14')
})

test('date.mob.init.2b: Before 3:00 UTC: right button is not disabled', async () => {
test('date.mob.init.2b: Before 7:00 UTC: right button is not disabled', async () => {
const { rightArrow } = selectors
await expect(rightArrow).toBeVisible()
await expect(rightArrow).not.toHaveClass(/button-disabled/)
await rightArrow.click()
await expect(rightArrow).toHaveClass(/button-disabled/)
})

test('date.mob.init.3a: After 3:00 UTC: load todays date', async () => {
test('date.mob.init.3a: After 7:00 UTC: load todays date', async () => {
const { mobileDatePickerSelectBtn } = selectors
const queryString = 'http://localhost:3000/?now=2013-03-15T4'
const queryString = 'http://localhost:3000/?now=2013-03-15T8'
await page.goto(queryString)
await closeModal(page)
await expect(mobileDatePickerSelectBtn).toContainText('2013 MAR 15')
})

test('date.mob.init.3b:After 3:00 UTC: right button is disabled', async () => {
test('date.mob.init.3b:After 7:00 UTC: right button is disabled', async () => {
const { rightArrow } = selectors
await expect(rightArrow).toBeVisible()
await expect(rightArrow).toHaveClass(/button-disabled/)
Expand Down
2 changes: 1 addition & 1 deletion web/js/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ window.onload = () => {

const pageLoadTime = new Date(config.pageLoadTime);

config.initialDate = config.pageLoadTime.getUTCHours() < 3
config.initialDate = config.pageLoadTime.getUTCHours() < 7
? new Date(pageLoadTime.setUTCDate(pageLoadTime.getUTCDate() - 1))
: pageLoadTime;

Expand Down
7 changes: 4 additions & 3 deletions web/js/modules/map/util.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,13 @@ import { tryCatchDate } from '../date/util';
* @returns {object} Extent Array
*/
export function getLeadingExtent(loadtime) {
let curHour = loadtime.getUTCHours();
// ( - 7 ) to adjust for NOAA-20 default imagery timing
let curHour = loadtime.getUTCHours() - 7;

// For earlier hours when data is still being filled in, force a far eastern perspective
if (curHour < 3) {
if (curHour < 0) {
curHour = 23;
} else if (curHour < 9) {
} else if (curHour < 5) {
curHour = 0;
}

Expand Down