Skip to content

Commit

Permalink
Merge pull request #505 from GSA-TTS/staging
Browse files Browse the repository at this point in the history
Update cloud account manager posting
  • Loading branch information
ximekilgsa authored Oct 18, 2024
2 parents ce5d5c6 + 418208f commit ad98283
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 22 deletions.
8 changes: 4 additions & 4 deletions _data/assetPaths.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
"admin.map": "/assets/js/admin-77FHK54G.js.map",
"app.js": "/assets/js/app-U5OIPSUD.js",
"app.map": "/assets/js/app-U5OIPSUD.js.map",
"positions.js": "/assets/js/positions-WJQAKJ7I.js",
"positions.map": "/assets/js/positions-WJQAKJ7I.js.map",
"subnav.js": "/assets/js/subnav-4HLYTIGH.js",
"subnav.map": "/assets/js/subnav-4HLYTIGH.js.map",
"positions.js": "/assets/js/positions-7HNV4MMS.js",
"positions.map": "/assets/js/positions-7HNV4MMS.js.map",
"subnav.js": "/assets/js/subnav-3QHQ2EX4.js",
"subnav.map": "/assets/js/subnav-3QHQ2EX4.js.map",
"styles.css": "/assets/styles/styles-EQTR2GJL.css",
"styles.map": "/assets/styles/styles-EQTR2GJL.css.map"
}
43 changes: 29 additions & 14 deletions js/positions.js
Original file line number Diff line number Diff line change
Expand Up @@ -358,23 +358,38 @@ function formatSessionTimes(sessionTime) {
return `${startET}-${endET} ET (${startPT}-${endPT} PT)`;
}

// Helper export function to convert the time to a specific timezone
// Helper function to convert the time to a specific timezone
function convertTimeToZone(time, timeZone) {
const now = new Date(); // Get today's date
const [hours, minutes, period] = time.match(/(\d+):(\d+)([ap]m)/i).slice(1); // Extract hours, minutes, period (am/pm)
const [hours, minutes, period] = time.match(/(\d+):(\d+)([ap]m)/i).slice(1);

// Create a date object using today's date and the given time in the desired timezone (ET or PT)
const date = new Date(
`${now.toLocaleDateString()} ${hours}:${minutes} ${period}`,
);
console.log(period);

let hours24 = parseInt(hours, 10);
let timePeriod = period;
if (period.toLowerCase() === "pm" && hours24 !== 12) {
hours24 += 12;
} else if (period.toLowerCase() === "am" && hours24 === 12) {
hours24 = 0;
}

// Set the PT offset
const ptOffset = timeZone !== "America/New_York" ? 3 : 0;
const ptHours = hours24 - ptOffset;

console.log(hours24, ptHours);

// Make sure the time period changes to AM if the Pacific Time is before noon
if (timeZone === "America/Los_Angeles" && hours24 >= 12 && ptHours < 12) {
timePeriod = "AM";
}

hours24 = hours24 - ptOffset;

if (hours24 > 12) {
hours24 += -12;
}

// Convert the time to the specified timezone (America/New_York for ET, America/Los_Angeles for PT)
return new Intl.DateTimeFormat("en-US", {
hour: "numeric",
minute: "numeric",
hour12: true,
timeZone: timeZone,
}).format(date);
return `${hours24}:${minutes} ${timePeriod.toUpperCase()}`;
}

if (typeof window !== "undefined") {
Expand Down
11 changes: 7 additions & 4 deletions pages/jointts/positions/Cloud-gov-Account-Manager.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ status_alert: true
alert_keywords: Account Management; Customer Experience (CX); Sales/Business Development

# If this listing has been updated since it was published, put the updated date below in YYYY-MM-DD format.
updated: 2024-10-15
updated: 2024-10-17

# BASIC INFO
# The basic information and details of the position
Expand All @@ -77,7 +77,7 @@ travel_requirement: Occasional travel may be required up to 10%-20% per year.
work_schedule: Full time.

# Set to 0 if there is no limit
max_applications: 200
max_applications: 150

# Use either "permanent" or "temporary"
appointment_type: permanent
Expand Down Expand Up @@ -166,8 +166,11 @@ qualifications: |
# indenting once.
specialized_requirements: |
- Experience managing relationships with customers or clients
- Experience in managing projects or business processes
- Experience with software and cloud infrastructure technologies and products such as: e.g., cloud infrastructure offerings like Amazon AWS, Google Cloud GCP, or Azure; OR Software-as-a-service products or web applications of any kind.
- Experience evaluating or scoping technical requirements for IT, software or cloud infrastructure systems
- Experience managing projects or business processes
- Experience utilizing software and cloud infrastructure technologies and products such as:
- Cloud infrastructure offerings like Amazon AWS, Google Cloud GCP, Azure; OR
- Software-as-a-service products or web applications of any kind.
# This can be filled prior to the job posting going live or left blank #
# The application button will only show after the open date #
Expand Down

0 comments on commit ad98283

Please sign in to comment.