     hour = @outOfOffice[hourOptionKey]
     advanceDay = hourOptionKey == "officeCloseHour" && @officeHoursOverlapDays()
 
-    if window.moment
+    if @outOfOffice["timezone"]? and momentTzLoaded()
       day = moment().tz(@outOfOffice["timezone"]).startOf("day").add hour, "h"
       day.add(1, "d") if advanceDay
       day.valueOf()

    now = new Date()
    new Date now.getTime() + now.getTimezoneOffset() * 60000

  deepMerge = (target, source) ->
    destination = {}


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

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