Urgent Help: Wrong time display

WPPizza – A Restaurant Plugin for WordPress Support General Support Urgent Help: Wrong time display

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #20241
    xin zhang
    Participant

      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

      #20248
      Olly
      Admin & Mod

        the 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 site

        #20258
        Olly
        Admin & Mod

          your 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

          #20265
          xin zhang
          Participant

            Awesome! 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??

            #20266
            Olly
            Admin & Mod

              >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 tip

              #20267
              xin zhang
              Participant

                Olly,

                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!

                #20268
                xin zhang
                Participant

                  My 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.

                  #20291
                  Olly
                  Admin & Mod

                    ok, 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 possible

                    that 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

                    #20292
                    xin zhang
                    Participant

                      Very nice of you to say so! Thank you very much for the help.

                    Viewing 9 posts - 1 through 9 (of 9 total)
                    • The topic ‘Urgent Help: Wrong time display’ is closed to new replies.