imports/vx/both/code/util.js
/**
     * Format date time with respect to the given user's time zone.
     *
     * @param {date} date Date object with standard UTC date.
     * @param {string} userId User ID
     * @param {boolean} showTime True to include time.
     * @return {string} Date and time returned with respect to the user's time zone.
     */
Format date time with respect to the given user's time zone.
Format date time with respect to the given user ' s time zone .
formatDateForUser(date, userId, showTime) {
        let timezone = Util.getUserTimezone(userId)
        let mask = showTime ? "MMM D YYYY h:mm A" : "MMM D YYYY"
        return moment.tz(date, timezone).format(mask)
    }
formatDateForUser ( date , userId , showTime ) { let timezone = Util . getUserTimezone ( userId ) let mask = showTime ? "MMM D YYYY h:mm A" : "MMM D YYYY" return moment . tz ( date , timezone ) . format ( mask ) }
Format date time with respect to the given user's time zone.
Format date time with respect to the given user ' s time zone .