Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disable the pre-sales chat on the Cloud pricing page for the Holidays. #71390

Merged
merged 5 commits into from
Dec 23, 2022
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
Oops, change endDate from Jan 3, to Jan 2.
  • Loading branch information
elliottprogrammer committed Dec 22, 2022
commit 50bfb7e7c194a01661126c154ebb802ad2ff5ae8
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ const isWithinAvailableChatDays = ( currentTime: Date ) => {

const isWithinShutdownDates = ( currentTime: Date ) => {
const startTime = new Date( Date.UTC( 2022, 11, 23 ) ); // Thu Dec 22 2022 19:00:00 (7:00pm) GMT-0500 (Eastern Standard Time)
const endTime = new Date( Date.UTC( 2023, 0, 3 ) ); // Mon Jan 02 2023 19:00:00 (7:00pm) GMT-0500 (Eastern Standard Time)
const endTime = new Date( Date.UTC( 2023, 0, 2 ) ); // Mon Jan 02 2023 19:00:00 (7:00pm) GMT-0500 (Eastern Standard Time)
const currentDateUTC = new Date( currentTime.toUTCString() );
if ( currentDateUTC > startTime && currentDateUTC < endTime ) {
return true;
Expand Down