WPPizza – A Restaurant Plugin for WordPress › Support › General Support › Urgent Help: Wrong time display
- AuthorPosts
- 19 August, 2016 at 12:18 am #20241
Hello development team,
I just installed wp-pizza and gateways. Everything seems to be working fine. Then I found the time is not right.
1. At the Settings-> General page, it’s set to America/Chicago and the time display is correct.
Universal time (UTC) is 2016-08-18 20:34:26. Local time is 2016-08-18 15:34:26.2. On the server,
bitnami@ip-172-31-10-157:/opt/bitnami/php/etc$ date
Thu Aug 18 15:34:41 CDT 2016
bitnami@ip-172-31-10-157:/opt/bitnami/php/etc$ timedatectl status
Local time: Thu 2016-08-18 15:34:48 CDT
Universal time: Thu 2016-08-18 20:34:48 UTC
Timezone: America/Chicago (CDT, -0500)3. In the
bitnami@ip-172-31-10-157:/opt/bitnami/php/etc$ grep -i date.timezone php.ini
; http://php.net/date.timezone
date.timezone = “America/Chicago”4. I also put a clock on [redacted by admin] by the plugin GNTT Timezone Clock. It shows the correct time 15:34.
However, if you go to Our-Menu -> Pizza and place a cash order, you will see the time is 5 hours lagging.
You can place the cash order for sure because we are not serving pizza or pasta.
Thank you.
Xin
19 August, 2016 at 12:21 am #20248the chances are , one of your plugins is changing timezones.
disable all other plugins and see if yous till have the issue>It shows the correct time 15:34.
no, it doesn’t. it shows the time where I am / my computer is / my computer clock.
if you are in the same timezone as your server then yes, it would be the same time.
suffice to say that clock you put there has nothing at all to do with the time of the server or the site19 August, 2016 at 2:11 am #20258your culprit is Event Calendar WD which sets the timezone and seemingly recalculates the offset again after wordpress has already applied the offset according to the timezone settings (or something to that effect)
you will find that the time is right when you disable that plugin
19 August, 2016 at 3:22 am #20265Awesome! As soon as I disable that plugin, it gives me the right time on the order details!
Thank you very much I had spent several hours trying to figure this out.
By the way, would you please delete the URL in my initial post?
Another question or suggestion I have is regarding the tip. Currently after I enter the tip value, I have to click the “OK” button (before sending the order or reviewing the order) to make the tip effective.
The real situation is my colleagues and myself do not have the habit to click the “OK”. Immediately after we enter the tip value, we click the “send order” or “review order” button. In this way, we thought we put tip there but we actually did not.
Is it possible to disable the “OK” button??
19 August, 2016 at 3:29 am #20266>By the way, would you please delete the URL in my initial post?
done>Is it possible to disable the “OK” button??
in theory, sure. but I won’t , sorry, as I really think people should confirm when and what they want to tip19 August, 2016 at 3:40 am #20267Olly,
If you try to send a cash order to US on my website, you will understand why the OK button is making people confusion.
If it is a cash order, then really the confirmation is useless because the cash is given on delivery.
If it is a credit card order, people will have a chance to review the total to pay by credit card.
And if you do not agree with me, I can accept that. But I hope you can make it an option at least in the next version.
Thank you!
19 August, 2016 at 3:41 am #20268My opinion: The popular online ordering platforms like grubhub, eat24, and so on, none has a button to confirm the tip amount. If we have to use a button to confirm, it will confuse the guests.
20 August, 2016 at 12:56 am #20291ok, I agree that you have a point in certain scenarios.
one of the reasons – at the time anyway – (I will not bore you with the details) was to cater for slow servers as well as some gateways where itemisation (i.e listing the tips separately) is not possiblethat said, I will make a note of what you said. Although it will not be part of any updates to the current 2.x branch, *maybe* I will be able to do something for 3.x when it’s ready as there are another few buttons I have been able to get rid off. we’ll see, no promises at the moment though
20 August, 2016 at 4:25 am #20292Very nice of you to say so! Thank you very much for the help.
- AuthorPosts
- The topic ‘Urgent Help: Wrong time display’ is closed to new replies.