Results 1 to 9 of 9
  1. #1
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    215
    Plugin Contributions
    1

    Default Banners expiring later than the "expires on" date

    I am setting up a sale with salemaker and use banners to advertise it on the site home page.

    The sale expires exactly on the "expires on" date set in the admin. However, the banners expire a day later than the "expires on" date set in the admin.

    As these 2 don't coincide, I have been setting the banner to expire a day earlier so far but was wondering if this was normal behavior?

    Please advise...

  2. #2
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    67,921
    Plugin Contributions
    6

    Default Re: Banners expiring later than the "expires on" date

    Banners expire at the end of the day on the date that they are set for ...

    So if you set it for 04/12/2012 and today is 04/12/2012, then it will expire at the end of the day tonight ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.3]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  3. #3
    Join Date
    Jun 2005
    Location
    Hertfordshire, UK
    Posts
    9,958
    Plugin Contributions
    3

    Default Re: Banners expiring later than the "expires on" date

    Where is the geo-location of your host server?

    If you are in CHINA and your server is in ENGLAND, the server's time will be several hours EARLIER than the time in CHINA.
    Our latest project is Pet Tags.

  4. #4
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    215
    Plugin Contributions
    1

    Default Re: Banners expiring later than the "expires on" date

    Thanks Ajeh for confirming.

    Hi schoolboy, that's what I initially thought - we're located in the Asian zone and the server is in the US. However, both sales and banners should then expires at the same time, no? ... that's strange.

  5. #5
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    215
    Plugin Contributions
    1

    Default Re: Banners expiring later than the "expires on" date

    Quote Originally Posted by Thannaree View Post
    Thanks Ajeh for confirming.

    Hi schoolboy, that's what I initially thought - we're located in the Asian zone and the server is in the US. However, both sales and banners should then expires at the same time, no? ... that's strange.
    This time I've created a discount coupon and set a banner ... and again have the same issue. The discount coupon expired exactly at the end of the day it was set for, but the banner almost a day later.

    I'm looking at the database and found the following data:

    Coupon:
    coupon_expire_date
    2012-09-11 00:00:00

    Banner:
    expires_date
    2012-09-11 23:59:59

    Is this host-related?

  6. #6
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    67,921
    Plugin Contributions
    6

    Default Re: Banners expiring later than the "expires on" date

    Banners expire at the end of the day that you have set the expiration for ...

    Banner:
    expires_date
    2012-09-11 23:59:59

    means that at the stroke of midnight of 9-12-2012, which is after 2012-09-11 23:59:59, the banner will expire ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.3]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  7. #7
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    215
    Plugin Contributions
    1

    Default Re: Banners expiring later than the "expires on" date

    Quote Originally Posted by Ajeh View Post
    Banners expire at the end of the day that you have set the expiration for ...

    Banner:
    expires_date
    2012-09-11 23:59:59

    means that at the stroke of midnight of 9-12-2012, which is after 2012-09-11 23:59:59, the banner will expire ...
    Thanks Ajeh for your quick reply.

    The issue is that the banner always expires one day later.

    When I set the banner to expire at the end of 2012-09-11, it expires at the end of 2012-09-12. The data in the database shows:

    expires_date
    2012-09-11 23:59:59

    Whereas when I set the coupon to expire at the end of 2012-09-11, it well expires at the end of 2012-09-11. The data in the database shows:

    coupon_expire_date
    2012-09-11 00:00:00

    Is it normal to have these 2, both set to expire at the end of 2012-09-11, expire at different times? I am not much familiar with databases and am not sure why one shows 23:59:59 and the other 00:00:00 ...

    Please advise.

  8. #8
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    67,921
    Plugin Contributions
    6

    Default Re: Banners expiring later than the "expires on" date

    Look at the dates and times ...

    The Banner date is 2012-09-11 23:59:59

    9-11-2012 at 23:59:59 is the second before midnight ... meaning it expires at 9-12-2012 00:00:00 which is a second later ...


    The Coupon date is 2012-09-11 00:00:00 that is midnight on 9-11-2012 ... meaning the second after 9-10-2012 11:59:59 ... so one is at exactly midnight on the date you set and the other is at midnight *after* the date you set ...


    If you want the Banner to end at the end of 9-11-2012 (so it does not work on 9-12-2012) you set it to 9-11-2012 and it will end at the stroke of midnight on 9-12-2012, the start of the day for 9-12-2012 ... and it will work on 9-11-2012 but not on 9-12-2012 ...

    If you want the Coupon to end at the end of 9-11-2012 (so it does not work on 9-12-2012) you set it to 9-12-2012 and it will end at the stroke of midnight on 9-12-2012, the start of the day for 9-12-2012 ... and it will work on 9-11-2012 but not work on 9-12-2012 ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.3]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...

  9. #9
    Join Date
    Dec 2010
    Location
    Thailand
    Posts
    215
    Plugin Contributions
    1

    Default Re: Banners expiring later than the "expires on" date

    Quote Originally Posted by Ajeh View Post
    Look at the dates and times ...

    The Banner date is 2012-09-11 23:59:59

    9-11-2012 at 23:59:59 is the second before midnight ... meaning it expires at 9-12-2012 00:00:00 which is a second later ...


    The Coupon date is 2012-09-11 00:00:00 that is midnight on 9-11-2012 ... meaning the second after 9-10-2012 11:59:59 ... so one is at exactly midnight on the date you set and the other is at midnight *after* the date you set ...


    If you want the Banner to end at the end of 9-11-2012 (so it does not work on 9-12-2012) you set it to 9-11-2012 and it will end at the stroke of midnight on 9-12-2012, the start of the day for 9-12-2012 ... and it will work on 9-11-2012 but not on 9-12-2012 ...

    If you want the Coupon to end at the end of 9-11-2012 (so it does not work on 9-12-2012) you set it to 9-12-2012 and it will end at the stroke of midnight on 9-12-2012, the start of the day for 9-12-2012 ... and it will work on 9-11-2012 but not work on 9-12-2012 ...
    Okay I will follow your instructions. Thank you!!

 

 

Similar Threads

  1. Replacing "Filter Results by ABC" with "Sort by: Price, Date added"
    By vandiermen in forum Templates, Stylesheets, Page Layout
    Replies: 4
    Last Post: 25 Aug 2010, 09:18 AM
  2. Link Expires saying "UNLIMITED"?
    By karms in forum General Questions
    Replies: 0
    Last Post: 17 Mar 2010, 08:33 PM
  3. Replies: 3
    Last Post: 3 Jun 2008, 11:41 AM
  4. remove "Wide-Banners" from login and checkout pages
    By frank18 in forum Basic Configuration
    Replies: 4
    Last Post: 9 Jan 2008, 12:28 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •