Ecommerce software home
Shopping Cart Software Forum for Ecommerce Templates
 
Home | Profile | Register | Active Topics | Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

Find us on Facebook Follow us on Twitter View our YouTube channel
Search our site
Forum Search
Google Site Search
Author « Topic »  

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  07:51:04  
Each day orders are listed in sequence as they are placed. Every day at 6 PM (central time USA -- actually since the time change it is now 7 PM) they are reset to a new day. My client would like this changed to midnight instead.

How can I do this?

Andy
ECT Moderator

95440 Posts

Posted - 03/20/2018 :  07:56:51  
Hi

That sounds like your server time is different to your local time in which case you'll need this addition to vsadmin/includes.php

https://www.ecommercetemplates.com/phphelp/ecommplus/parameters.asp#date

$dateadjust=-5;

Andy

Please feel free to review / rate our software

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  08:02:22  
I just checked the time on the server and it is set to the correct time in my time zone.

Should the end of the day reset at Midnight (local time)?

dbdave
ECT Moderator

USA
10468 Posts

Posted - 03/20/2018 :  08:11:07  
You may want to be certain of your server time.
Your host may have a different time in your hosting control panel, than the physical location of the servers.
Add this to a .php page to check

$timezone = date_default_timezone_get();
echo "The current server timezone is: " . $timezone;

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  08:12:41  
Update - I checked the time on the server and it is showing the correct local time. However; I just placed a test order - my local time is 10:11 AM on 3/20/18 -- The order showing in the admin says: 2018--3-20 15:10:34 -- That is 5 hours ahead! So when my local time says 7 PM - the admin thinks it is Midnight.

Why would that be happening - when my server is in the correct time? Is there somewhere else to set the time?

Edited by - JustDucky923 on 03/20/2018 08:14:10

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  08:19:08  
It showed: The current server timezone is: America/Los_Angeles

You're right that is not my local time - but it is 2 hours behind! The time on the admin is showing 5 hours ahead!

This is very strange. Can anyone help me figure it out?

Paradise
Ecommerce Template Guru

USA
1602 Posts

Pre-sales questions only
(More Details...)

Posted - 03/20/2018 :  08:23:10  
Do you have that parameter set in your includes that Andy mentioned?

Responsive Design Deals Ecomm Plus - ASP 6.8
www.paradiseclothingco.com

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  08:39:38  
No I have not added that yet because it seems my server is actually set for Los Angeles time - but that is two hours BEHIND my current local time. So why would the orders be showing a time 5 hours AHEAD of my current local time?

I am working with my host right now to get the server set to my current local time.

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  08:50:33  
Ok, my server and all associated files are set to my current local time (which is 10:50 AM USA). I'm going to try a test purchase and see what the admin says regarding the time.

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  08:55:11  
It's still not working correctly. My host and I changed the time from Los Angeles time (which would be 8:53 AM right now) to my current local time (which is 10:53 AM). We rebooted the server and I went into the site and did a test purchase. Here is what it shows in the admin:

Tue 20 Mar 03:52pm

How do I fix this?

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 03/20/2018 :  09:03:34  
Have you added this parameter to the includes.php? - $dateadjust=-5;




* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  09:08:03  
Now that we have set the timezone to my correct current time - I just placed an order (current local time 11:06 AM) - the admin shows the order time as 4:06 PM -- what do I set the parameter to??

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  09:14:11  
I have set the parameter and it's now working. Could someone explain why this has to be set like this? If the time zone in my server is correct - why is this time incorrect?

Phil
ECT Moderator

United Kingdom
7715 Posts

Posted - 03/20/2018 :  09:22:31  
It sounds like the actual time is set incorrectly even though it's on the correct time zone perhaps?



* Database Migrations and Conversions*
* ASP to PHP Cart Conversions*

*Contact Us*
*Buy The PHP Capture Card Plugin*
*Rate Our Services/View Our Feedback*

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  09:41:16  
No, we checked everywhere and the time and the timezone are correct in every place on the server.

This must be a common issue, since you address it with a specific set of parameters.

Andy
ECT Moderator

95440 Posts

Posted - 03/20/2018 :  09:42:50  
It's a common issue because users and their servers are not always at the same location so there will be time differences that need adjusting.

Andy

Please feel free to review / rate our software

JustDucky923
Ecommerce Template Guru

USA
1333 Posts

Posted - 03/20/2018 :  09:49:28  
That makes sense.

I'm just wondering why we are having this issue. Apparently it's been like this all along, they just didn't notice the time stamp on the orders before and thought that the day ended at 6 PM for some reason!
  « Topic »  
Jump To:
Shopping Cart Software Forum for Ecommerce Templates © 2002-2022 ecommercetemplates.com
This page was generated in 0.05 seconds. Snitz Forums 2000