Hi, we are based in Australia UTC/GMT +10 hours – so that if we receive an order notification email / or order confirmation with {order_date} is sent to customer, at say 9am in the morning our time, the order date is showing as the preceding day in error. Is it possible please to amend the plugin to retrieve Local date, rather than Universal date as per WordPress settings (for the {order_date} shortcode). Alternatively, is there a short code for Local date?
thank you for your reply – we already have local time setup in WordPress settings, but it still seems to be using the universal time instead of local timezone settings.
my web guy has advised: In the shortcodes() function, the order date is generated using the date_i18n() function, which takes the current time using current_time(‘U’) and formats it according to the WordPress date format settings. However, the current_time(‘U’) function returns the current time in the UTC (Coordinated Universal Time) timezone, not the local Sydney time zone.
thank you again, regardless, the order shortcode is returning the universal time /date created, instead of the Local time/date. how can we return the Local time/date please – is there a shortcode specific for Local time? thank you
thank you – do I need to save the templates I have created already – if so, how do I do this please? will they be over-written with the new version? thank you.