woocommerce / woocommerce-android

WooCommerce Android app
https://www.woocommerce.com/mobile
GNU General Public License v2.0
277 stars 135 forks source link

Inconsistent Timezones in Stats and Orders #4121

Closed mdrockwell closed 1 week ago

mdrockwell commented 3 years ago

Describe the bug The stats in the My Store tab uses the store's timezone however the Orders tab uses the device timezone.

To Reproduce Set your store's timezone to something other than your device's timezone. View the stats in the My Store tab within the app. View the orders in the Orders tab within the app.

Screenshots mysite-tab orders-tab

Expected behavior The app should display stats and orders in the timezone of the store.

Isolating the problem (mark completed items with an [x]):

Mobile Environment Please include:

WordPress Environment

``` ` ### WordPress Environment ### WordPress address (URL): http://a8c.rockwell.mx/woowithjetpack Site address (URL): http://a8c.rockwell.mx/woowithjetpack WC Version: 5.3.0 REST API Version: ✔ 5.3.0 WC Blocks Version: ✔ 4.9.1 Action Scheduler Version: ✔ 3.1.6 WC Admin Version: ✔ 2.2.6 Log Directory Writable: ✔ WP Version: 5.7.2 WP Multisite: – WP Memory Limit: 768 MB WP Debug Mode: – WP Cron: ✔ Language: en_US External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.3.28 PHP Post Max Size: 256 MB PHP Time Limit: 120 PHP Max Input Vars: 3000 cURL Version: 7.66.0 OpenSSL/1.1.1k-fips SUHOSIN Installed: – MySQL Version: 5.7.32-35-log Max Upload Size: 256 MB Default Timezone is UTC: ✔ fsockopen/cURL: ✔ SoapClient: ✔ DOMDocument: ✔ GZip: ✔ Multibyte String: ✔ Remote Post: ✔ Remote Get: ✔ ### Database ### WC Database Version: 5.3.0 WC Database Prefix: rsp_ Total Database Size: 6.19MB Database Data Size: 4.60MB Database Index Size: 1.59MB rsp_woocommerce_sessions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB rsp_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_woocommerce_order_itemmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB rsp_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB rsp_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB rsp_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_actionscheduler_actions: Data: 0.02MB + Index: 0.11MB + Engine InnoDB rsp_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_actionscheduler_logs: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB rsp_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_options: Data: 2.06MB + Index: 0.08MB + Engine InnoDB rsp_postmeta: Data: 0.22MB + Index: 0.19MB + Engine InnoDB rsp_posts: Data: 1.52MB + Index: 0.06MB + Engine InnoDB rsp_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_usermeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB rsp_wc_admin_notes: Data: 0.02MB + Index: 0.00MB + Engine InnoDB rsp_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB rsp_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB rsp_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB rsp_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB rsp_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB rsp_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB rsp_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB rsp_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB ### Post Type Counts ### attachment: 23 global_product_addon: 1 nav_menu_item: 117 page: 117 post: 20 product: 18 product_variation: 8 revision: 1 shop_order: 2 ### Security ### Secure connection (HTTPS): ✔ Hide errors from visitors: ✔ ### Active Plugins (2) ### Jetpack: by Automattic – 9.8 WooCommerce: by Automattic – 5.3.0 ### Inactive Plugins (4) ### SG Optimizer: by SiteGround – 5.7.20 WooCommerce Product Add-ons: by WooCommerce – 4.0.0 WooCommerce Shipping & Tax: by WooCommerce – 1.25.13 WordPress Importer: by wordpressdotorg – 0.7 ### Settings ### API Enabled: ✔ Force SSL: – Currency: USD ($) Currency Position: left Thousand Separator: , Decimal Separator: . Number of Decimals: 2 Taxonomies: Product Types: external (external) grouped (grouped) simple (simple) variable (variable) Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog) exclude-from-search (exclude-from-search) featured (featured) outofstock (outofstock) rated-1 (rated-1) rated-2 (rated-2) rated-3 (rated-3) rated-4 (rated-4) rated-5 (rated-5) Connected to WooCommerce.com: ✔ ### WC Pages ### Shop base: #5 - /shop/ Cart: #6 - /cart/ Checkout: #7 - /checkout/ My account: #8 - /my-account/ Terms and conditions: ❌ Page not set ### Theme ### Name: Storefront Version: 3.7.0 Author URL: https://woocommerce.com/ Child Theme: ❌ – If you are modifying WooCommerce on a parent theme that you did not build personally we recommend using a child theme. See: How to create a child theme WooCommerce Support: ✔ ### Templates ### Overrides: – ### Action Scheduler ### Complete: 5 Oldest: 2021-06-02 13:42:44 +0000 Newest: 2021-06-02 13:48:09 +0000 ### Status report information ### Generated at: 2021-06-02 21:50:44 +08:00 ` ```
thabotswana commented 3 years ago

Another report: 4354925-zen

....the store is in EST, and I am in europe in CEST. This is key really, the app should always use the store's timezone not where the store owner is travelling to...

JorgeMucientes commented 1 week ago

This doesn't apply anymore. Closing