     now = new Date()
     new Date now.getTime() + now.getTimezoneOffset() * 60000
 
+  momentTzLoaded = ->
+    window.moment and window.moment().tz? and window.moment().tz("Etc/UTC")?
+
   deepMerge = (target, source) ->
     destination = {}
 

    @outOfOffice["officeOpenHour"] < @outOfOffice["officeCloseHour"]

  officeTimestamp: ->
    if window.moment
      moment().tz(@outOfOffice["timezone"]).valueOf()
    else
      utcDate().getTime()

    hour = @outOfOffice[hourOptionKey]
    advanceDay = hourOptionKey == "officeCloseHour" && @officeHoursOverlapDays()

    if @outOfOffice["timezone"]? and momentTzLoaded()
      day = moment().tz(@outOfOffice["timezone"]).startOf("day").add hour, "h"
      day.add(1, "d") if advanceDay
      day.valueOf()
