This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
exports.handler = function(context, event, callback) { | |
const moment = require('moment-timezone'); | |
// This represents current time | |
const now = moment().tz('America/Los_Angeles'); | |
let isBizTime = false; | |
// Let's check if it's a weekday using moment().isoWeekday() | |
// Here monday = 1 and sunday = 7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent> | |
<cffunction name="onRequestEnd"> | |
<!--- Get the generated output ---> | |
<cfset var output = getPageContext().getCFOutput().getBuffer().toString()> | |
<!--- Apply outbound link rules ---> | |
<cfset output = reReplace(output, '/info\.cfm\?subjectid=([^=&]+)', '/info/\1', 'all')> | |
<!--- Clear the previous output and send the rewritten output in its place ---> |