Coupon Date expiration is broken
-
Basically, we are trying to set up coupons via woo-commerce, but every time we follow the required date format (for when the coupon will expire), it automatically changes it to the wrong format!
I’ve tried changing the timezone and date formats in the general settings but, unfortunately, nothing has worked, if anyone has any suggestions, that would be fantastic!
-
Can you share screenshots of the before and after using https://snipboard.io?
I look forward to hearing from you.
Hi there!
This is the before: https://snipboard.io/OM3wUv.jpg
This is the after: https://snipboard.io/ZmMHQy.jpg
Ive tried every different date format, and for some reason every time I click to publish the date changes to the second screenshot which in return makes it the wrong format!
Many thanks, Sean.
Hello,
I’m sorry to hear that,
To take a better look at the issue, can you please share a copy of your site’s System Status? You can find it via WooCommerce > Status. Select “Get system report” and then “Copy for support”.?
Error Log: Share a copy of any fatal error log found under WooCommerce > System Status > Logs (if available).
Thanks.
Hi there, Yes of course.
### WordPress Environment ### WordPress address (URL): https://makingchangesne.com Site address (URL): https://makingchangesne.com WC Version: 6.0.0 REST API Version: ? 6.0.0 WC Blocks Version: ? 6.3.3 Action Scheduler Version: ? 3.3.0 WC Admin Version: ? 2.9.4 Log Directory Writable: ? WP Version: 5.8.3 WP Multisite: – WP Memory Limit: 512 MB WP Debug Mode: – WP Cron: ? Language: en_GB External object cache: – ### Server Environment ### Server Info: Apache PHP Version: 7.4.27 PHP Post Max Size: 8 MB PHP Time Limit: 300 PHP Max Input Vars: 1000 cURL Version: 7.71.0 OpenSSL/1.1.1d SUHOSIN Installed: – MySQL Version: 10.3.32-MariaDB-cll-lve Max Upload Size: 2 MB Default Timezone is UTC: ? fsockopen/cURL: ? SoapClient: ? DOMDocument: ? GZip: ? Multibyte String: ? Remote Post: ? Remote Get: ? ### Database ### WC Database Version: 6.0.0 WC Database Prefix: wpkk_ Total Database Size: 73.16MB Database Data Size: 64.99MB Database Index Size: 8.17MB wpkk_woocommerce_sessions: Data: 1.02MB + Index: 0.02MB + Engine InnoDB wpkk_woocommerce_api_keys: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_woocommerce_attribute_taxonomies: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_woocommerce_downloadable_product_permissions: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkk_woocommerce_order_items: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_woocommerce_order_itemmeta: Data: 0.06MB + Index: 0.03MB + Engine InnoDB wpkk_woocommerce_tax_rates: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkk_woocommerce_tax_rate_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_woocommerce_shipping_zones: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_woocommerce_shipping_zone_locations: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_woocommerce_shipping_zone_methods: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_woocommerce_payment_tokens: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_woocommerce_payment_tokenmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_woocommerce_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_actionscheduler_actions: Data: 0.25MB + Index: 0.36MB + Engine InnoDB wpkk_actionscheduler_claims: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_actionscheduler_groups: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_actionscheduler_logs: Data: 0.22MB + Index: 0.19MB + Engine InnoDB wpkk_addonlibrary_addons: Data: 0.05MB + Index: 0.00MB + Engine InnoDB wpkk_addonlibrary_categories: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_ce4wp_abandoned_checkout: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_commentmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_comments: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wpkk_ewwwio_images: Data: 0.06MB + Index: 0.06MB + Engine InnoDB wpkk_ewwwio_queue: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_e_submissions: Data: 0.02MB + Index: 0.27MB + Engine InnoDB wpkk_e_submissions_actions_log: Data: 0.02MB + Index: 0.11MB + Engine InnoDB wpkk_e_submissions_values: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_links: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailchimp_carts: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_mailchimp_jobs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_mailpoet_custom_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_dynamic_segment_filters: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_feature_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_forms: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_mailpoet_log: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_mailpoet_mapping_to_external_entities: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_mailpoet_newsletter_links: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_mailpoet_newsletter_option: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_newsletter_option_fields: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_newsletter_posts: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_newsletter_segment: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_newsletter_templates: Data: 2.52MB + Index: 0.00MB + Engine InnoDB wpkk_mailpoet_scheduled_tasks: Data: 0.08MB + Index: 0.06MB + Engine InnoDB wpkk_mailpoet_scheduled_task_subscribers: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_segments: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_mailpoet_sending_queues: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_mailpoet_settings: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_statistics_bounces: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_mailpoet_statistics_clicks: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_mailpoet_statistics_forms: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_statistics_newsletters: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_mailpoet_statistics_opens: Data: 0.02MB + Index: 0.08MB + Engine InnoDB wpkk_mailpoet_statistics_unsubscribes: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_mailpoet_statistics_woocommerce_purchases: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkk_mailpoet_stats_notifications: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_mailpoet_subscribers: Data: 0.02MB + Index: 0.13MB + Engine InnoDB wpkk_mailpoet_subscriber_custom_field: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_subscriber_ips: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_subscriber_segment: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_mailpoet_user_agents: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_mailpoet_user_flags: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_options: Data: 7.06MB + Index: 0.17MB + Engine InnoDB wpkk_postmeta: Data: 31.52MB + Index: 1.84MB + Engine InnoDB wpkk_posts: Data: 5.48MB + Index: 0.30MB + Engine InnoDB wpkk_rafflepress_contestants: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_rafflepress_entries: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_rafflepress_giveaways: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_shortpixel_folders: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_shortpixel_meta: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_simple_history: Data: 0.11MB + Index: 0.06MB + Engine InnoDB wpkk_simple_history_contexts: Data: 1.02MB + Index: 1.34MB + Engine InnoDB wpkk_termmeta: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_terms: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_term_relationships: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_term_taxonomy: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_usermeta: Data: 0.14MB + Index: 0.13MB + Engine InnoDB wpkk_users: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_vxcf_leads: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_vxcf_leads_detail: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_vxcf_leads_notes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wc_admin_notes: Data: 0.06MB + Index: 0.00MB + Engine InnoDB wpkk_wc_admin_note_actions: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wc_category_lookup: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wc_customer_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_wc_download_log: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_wc_order_coupon_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_wc_order_product_lookup: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkk_wc_order_stats: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_wc_order_tax_lookup: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_wc_product_meta_lookup: Data: 0.02MB + Index: 0.09MB + Engine InnoDB wpkk_wc_rate_limits: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wc_reserved_stock: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wc_tax_rate_classes: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wc_webhooks: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wfblockediplog: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wfblocks7: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_wfconfig: Data: 1.41MB + Index: 0.00MB + Engine InnoDB wpkk_wfcrawlers: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wffilechanges: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wffilemods: Data: 7.52MB + Index: 0.00MB + Engine InnoDB wpkk_wfhits: Data: 0.14MB + Index: 0.05MB + Engine InnoDB wpkk_wfhoover: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wfissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkk_wfknownfilelist: Data: 3.52MB + Index: 0.00MB + Engine InnoDB wpkk_wflivetraffichuman: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wflocs: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wflogins: Data: 0.05MB + Index: 0.03MB + Engine InnoDB wpkk_wfls_2fa_secrets: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wfls_settings: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wfnotifications: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wfpendingissues: Data: 0.02MB + Index: 0.06MB + Engine InnoDB wpkk_wfreversecache: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wfsnipcache: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_wfstatus: Data: 0.13MB + Index: 0.09MB + Engine InnoDB wpkk_wftrafficrates: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wfu_dbxqueue: Data: 0.02MB + Index: 0.00MB + Engine InnoDB wpkk_wfu_log: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_wfu_userdata: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_yoast_indexable: Data: 0.47MB + Index: 0.44MB + Engine InnoDB wpkk_yoast_indexable_hierarchy: Data: 0.02MB + Index: 0.05MB + Engine InnoDB wpkk_yoast_migrations: Data: 0.02MB + Index: 0.02MB + Engine InnoDB wpkk_yoast_primary_term: Data: 0.02MB + Index: 0.03MB + Engine InnoDB wpkk_yoast_seo_links: Data: 0.06MB + Index: 0.03MB + Engine InnoDB ### Post Type Counts ### attachment: 255 cf7pp_payments: 9 cpt_events: 12 custom_css: 2 elementor_library: 24 envato_tk_import: 4 event_booking: 105 event_location: 6 jp_img_sitemap: 1 jp_sitemap: 1 jp_sitemap_master: 1 location_region: 3 mailpoet_page: 1 nav_menu_item: 12 page: 27 post: 7 product: 26 revision: 1063 shop_coupon: 6 shop_order: 47 shop_order_refund: 4 wpcf7_contact_form: 2 wpcf7r_action: 1 ### Security ### Secure connection (HTTPS): ? Hide errors from visitors: ? ### Active Plugins (30) ### Query Monitor: by John Blackbourn – 3.8.2 Akismet Anti-Spam: by Automattic – 4.2.1 Awesome Event Booking: by Awesome TOGI – 2.5.2 Child Theme Configurator: by Lilaea Media – 2.5.8 Contact Form 7: by Takayuki Miyoshi – 5.5.3 Contact Form Entries: by CRM Perks – 1.2.8 Elementor Pro: by Elementor.com – 3.5.2 Elementor: by Elementor.com – 3.5.3 Envato Elements: by Envato – 2.0.11 Essential Addons for Elementor: by WPDeveloper – 5.0.1 EWWW Image Optimizer: by Exactly WWW – 6.3.0 Facebook for WooCommerce: by Facebook – 2.6.8 Site Kit by Google: by Google – 1.48.1 Hello Dolly: by Matt Mullenweg – 1.7.2 Jetpack: by Automattic – 10.5 Mailchimp for WooCommerce: by Mailchimp – 2.5.4 MailPoet 3 (New): by MailPoet – 3.75.1 Ocean Extra: by OceanWP – 1.9.2 Simple Google reCAPTCHA: by Michal Novák – 3.8 Simple History: by P?r Thernstr?m – 3.0.0 Unlimited Elements for Elementor (Premium): by Unlimited Elements – 1.4.49 Checkout Field Editor for WooCommerce: by ThemeHigh – 1.5.2 WooCommerce Stripe Gateway: by WooCommerce – 6.0.0 WooCommerce Shipping & Tax: by WooCommerce – 1.25.20 WooCommerce: by Automattic – 6.0.0 (update to version 6.1.0 is available) Wordfence Security: by Wordfence – 7.5.7 Yoast SEO: by Team Yoast – 17.9 WP Cloudflare Super Page Cache: by Optimole – 4.5.7 WP Super Cache: by Automattic – 1.7.4 Woocommerce Addon for Awesome Event Booking: by TOGI Data – 2.3 ### Inactive Plugins (0) ### ### Dropin Plugins (2) ### advanced-cache.php: advanced-cache.php db.php: Query Monitor Database Class ### Must Use Plugins (1) ### Elementor Safe Mode: by Elementor.com – 1.0.0 ### Settings ### API Enabled: – Force SSL: – Currency: GBP (£) 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: ? Page ID is set but the page does not exist Basket: #1074 - /making-changes-ne-cart/ Checkout: #1075 - /making-changes-ne-checkout/ My account: #1076 - /making-changes-ne-my-account/ Terms and conditions: ? Page not set ### Theme ### Name: OceanWP Child Version: 2.0.8.1633693719 Author URL: https://oceanwp.org/about-me/ Child Theme: ? Parent Theme Name: OceanWP Parent Theme Version: 3.1.2 Parent Theme Author URL: https://oceanwp.org/about-me/ WooCommerce Support: ? ### Templates ### Overrides: oceanwp/woocommerce/cart/mini-cart.php oceanwp/woocommerce/content-single-product.php oceanwp/woocommerce/loop/loop-start.php oceanwp/woocommerce/single-product/title.php ### Action Scheduler ### Complete: 856 Oldest: 2021-12-29 15:55:29 +0000 Newest: 2022-01-11 19:30:04 +0000 Pending: 1 Oldest: 2022-01-11 20:10:18 +0000 Newest: 2022-01-11 20:10:18 +0000 ### Status report information ### Generated at: 2022-01-11 20:10:50 +00:00
Many Thanks, Sean
Hi @seanraine,
That’s definitely not quite right. The saved date is totally different. On my test site, this doesn’t follow the date settings in Settings > General. It seems like it always uses year-month-day.
It could be there is something filtering the date in an unexpected way. To narrow it down, I would suggest running a conflict test. This guide can show you how to do that.
https://woocommerce.com/document/how-to-test-for-conflicts/
If that’s not it, this could be an issue from the server. It may not be giving the date in a way that WooCommerce expects. You could try coping the site to your local computer using something like Locay by Flywheel and see if the same issue happens there.
Let us know what you find out.
Hi Guys,
Just concluded the conflict test, it looks like there’s a conflict with a plug-in called ‘awesome event booking’. Might have to do some designs to stop the conflict in the future!
Thanks for the help guys!
Hi @seanraine,
Thank you very much for letting us know! We’re glad that you figured it out.
Let us know if we can help with anything else!
- The topic ‘Coupon Date expiration is broken’ is closed to new replies.