*AmProtect & Incremental Plugin - How Are Days Caculated?

Discussion in 'Integration' started by ryanbgood, Jul 27, 2010.

  1. ryanbgood

    ryanbgood New Member

    Joined:
    Jul 18, 2010
    Messages:
    6
    Can Ken or anyone else confirm how "days" are calculated by AmProtect (and the Amember incremental plugin for that matter?)

    For example:

    If a user subscribes to a product at 10:05 PM EST on Monday (our Day 0), will "Day 1" content become available at 12:01 AM EST on Tuesday (when the next dateline is reached) or at 10:05 PM on Tuesday (after 24 hours transpires)?

    And if the latter, is there any way to redefine "days" to be something like 12 hours instead of 24 hours?

    Thanks!

    Ryan
  2. skippybosco

    skippybosco CGI-Central Partner Staff Member

    Joined:
    Aug 22, 2006
    Messages:
    2,526
    User will have access ALL day until midnight AND the date changes.

    If product period will 1 day and user will signup for example at May 19 23:55 aMember will set expire date of user's payment to May 20 so payment will be active until May 20 23:59:59

    If a user signs up at 12:01am on May 19 for a 1 day access, they will get access until May 20 23:59:59 (essentially 2 days)..
  3. ryanbgood

    ryanbgood New Member

    Joined:
    Jul 18, 2010
    Messages:
    6
    Thanks skippy...

    Just to confirm:

    The same behavior is true for incrementally delivered content??? i.e. for content that becomes available "Day 1" -- Day 1 is effective 12:00 midnight the day after the user's Day 0, correct?

    If that's the case, is the timezone that determines WHEN midnight occurs determined by the php.ini file on my server? Or a setting in Amember? Or something else?

    Thanks so much!

    Ryan

Share This Page