If this is your first visit, check our documentation. To post, register or login.
Forums / General Questions / General Questions / Explanation on how the expire date works on banner and sales?

Explanation on how the expire date works on banner and sales?

Started by navido on 7 Jul 2013, 3:43 PM · Views: 1,378

Results 1 to 13 of 13
7 Jul 2013, 3:43 PM
#1
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #1 by navido

Hi

I dont understand this. I have created and activated a banner (wide-banner on top of page). I put the banner to be expired at 8th of july.

Today it is 7th of july. And i see the banner has been deactivated. The serverdate and database in my admin is: 07.07.2013 17:37:29 .

So why does the banner get deactivated?? It seems that that if i want it to be deactivated at 8th of july i have to put it at 9th of july..and then it will be deactivated in the middle of the day ( i dont know the exact time).

And how can i make it that at 8th of july 00:00 it gets expired?

This is also regardred to sales where the same problem occurs.

Can someone clarify this up?

7 Jul 2013, 4:06 PM
#2
ajeh avatar

ajeh

Oba-san

Join Date:
Sep 2003
Location:
Ohio
Posts:
62,757
Plugin Contributions:
1

Post #2 by ajeh

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 (when the clock passes 11:59:59) ...

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!]
Officially PayPal-Certified! Just click here

Try our Zen Cart Recommended Services - Hosting, Payment and more ...
Signup for our Announcements Forums to stay up to date on important changes and updates!

7 Jul 2013, 4:08 PM
#3
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #3 by navido

I think you may be didnt read my post carefully:

7 Jul 2013, 6:46 PM
#4
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #4 by drbyte

Sounds like a timezone difference in your MySQL server configuration.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

7 Jul 2013, 10:49 PM
#5
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #5 by navido

DrByte:

Sounds like a timezone difference in your MySQL server configuration.

In zen cart admin, when i go to server configuration, this is what is listed:

date/time support: enabled
"Olson" Timezone Database Version 2013.3
Timezone Database: external
Default timezone: Europe/Oslo

i just donget it:wacko:

7 Jul 2013, 10:52 PM
#6
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #6 by navido

Besides, yes i live in Oslo.

7 Jul 2013, 11:10 PM
#7
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #7 by drbyte

Ya, but that doesn't mean your MySQL engine is also using that timezone.

You didn't say what Zen Cart version you're using.

And while you said that the Default timezone is Oslo, you didn't mention what the PHP date.timezone value was set to.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Jul 2013, 4:05 PM
#8
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #8 by navido

i have 1.3.8

server and mySQL times matches the local time, but date.timezone is 'no value' both locally and master.

9 Jul 2013, 7:18 PM
#9
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #9 by drbyte

Great.

v1.5.1 handles dates and timezones much better than the 2006 code that v1.3.8 is using.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

9 Jul 2013, 7:42 PM
#10
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #10 by navido

Thanks for answering Dr. Byte

I know i should upgrade, but it is very complex thing for me to do,. Besides, i think i will upgrade to 1.3.9, because there are many mods which are not modified to work with 1.5.1. Anyways, this doesnt mean that the 1.3.8 should not handle the issue i am talking about.

9 Jul 2013, 8:03 PM
#11
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #11 by drbyte

navido:

Anyways, this doesnt mean that the 1.3.8 should not handle the issue i am talking about.
Not exactly a fair statement.
v1.3.8 was designed for PHP 4 ... which is now more than obsolete.
And it had nothing built into it for being sensitive to timezones. It assumed that the server and the MySQL engine and the PHP configuration were all equally set to the same timezone.

Apparently your server's configuration is not.

Newer versions have done more to address the issue of improperly configured servers, basically helping to protect you from yourself or from server admins who aren't keeping things consistent.
You might try making use of the time-zone-offset plugin to bridge the gap temporarily.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.

15 Jul 2013, 1:18 AM
#12
navido avatar

navido

Zen Follower

Join Date:
Sep 2008
Posts:
221
Plugin Contributions:
0

Post #12 by navido

Ok thanks

In terms of safety..can i upgrade to 1.3.9 or do is it a "must" to upgrade to 1.5.1? 1.3.9 supports more existings plugins.

15 Jul 2013, 2:39 AM
#13
drbyte avatar

drbyte

Sensei

Join Date:
Jan 2004
Posts:
63,512
Plugin Contributions:
176

Post #13 by drbyte

1.3.9 has more security protections than 1.3.8
1.5.1 has more bugfixes and security protections than 1.3.9

A lot of plugins for 1.3.9 will probably also work on 1.5.x. If you need a certain one, test it out, and/or read its support thread and see. It could be that it is compatible but that nobody has been made aware to update the list of supported versions for it.

.
Zen Cart - putting the dream of business ownership within reach of anyone!
Donate to: DrByte directly or to the Zen Cart team as a whole

Remember: Any code suggestions you see here are merely suggestions. You assume full responsibility for your use of any such suggestions, including any impact ANY alterations you make to your site may have on your PCI compliance.
Furthermore, any advice you see here about PCI matters is merely an opinion, and should not be relied upon as "official". Official PCI information should be obtained from the PCI Security Council directly or from one of their authorized Assessors.