       @$('.modal-dialog').addClass('is-static-open')
     else
       cookieValue = "#{@auctionName}|#{@auctionId}|#{@auctionImage}|#{@auctionEndat}"
-      cookieExpiration = moment.duration(moment(@offsetEndAtMoment).diff(moment()))._milliseconds
-      Cookies.set('firstAuctionReminderSeen', cookieValue, { expires: cookieExpiration })
+      Cookies.set('firstAuctionReminderSeen', cookieValue, { expires: @cookieExpiration })
       activate = => @$dialog.addClass("is-spring-in")
       _.delay(activate,5000)
 

AuctionClock = require './clock/view.coffee'

class AuctionReminderModal extends Backbone.View

  events: ->
    'click .modal-close': 'close'

  initialize: ({ @auctionName, @auctionId, @auctionImage, @auctionEndat }) ->

    # Reminder doesn't show on auction page
    if window.location.pathname == "/auction/#{@auctionId}"
      return
    # Reminder only shows if 24 hours until end
    diff = moment(@auctionEndat).diff(moment(),'hours')
