Title: Plugin NOT using localtime
Last modified: April 1, 2021

---

# Plugin NOT using localtime

 *  Resolved [visualsoftspace](https://wordpress.org/support/users/visualsoftspace/)
 * (@visualsoftspace)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-using-localtime/)
 * Hello – I purchased your plugin a couple of weeks ago and it works really great
   outside of one issue.
 * When I set a condition to display a label on a specific day of the week, the 
   plugin seems to be getting the day of the week from the UTC date and NOT the 
   local date.
 * As a result if a label is supposed to display on Thursday, it will only display
   until 5:00pm PST, because at 5:00pm PST the system will start showing the label
   scheduled for Friday.
 * My wordpress local timezone is set America/Los Angeles and all other plugins 
   that use or display the time show the localtime, it is only this plugin that 
   keeps using UTC time.
 * Please let me know if there is something I can add to the functions file or otherwise
   that will resolve the issue.

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Author [ILLID](https://wordpress.org/support/users/mihail-barinov/)
 * (@mihail-barinov)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-using-localtime/#post-14269668)
 * Hello,
 * Please try the following – open advanced-woo-labels/includes/class-awl-conditions.
   php file and replace all functions
 * `date()`
 * with
 * `date_i18n()`
 * I will also include this changes to the next plugin release.
 * Regards
 *  Thread Starter [visualsoftspace](https://wordpress.org/support/users/visualsoftspace/)
 * (@visualsoftspace)
 * [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-using-localtime/#post-14271015)
 * Thank you for the quick response! I made the changes you suggested and it immediately
   resolved my issue. I’m so glad I purchased this plugin, it works great for what
   I need and the support response is excellent. Thank you!

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Plugin NOT using localtime’ is closed to new replies.

 * ![](https://ps.w.org/advanced-woo-labels/assets/icon-256x256.png?rev=3326325)
 * [Advanced Woo Labels - Product Labels & Badges for WooCommerce](https://wordpress.org/plugins/advanced-woo-labels/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/advanced-woo-labels/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/advanced-woo-labels/)
 * [Active Topics](https://wordpress.org/support/plugin/advanced-woo-labels/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/advanced-woo-labels/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/advanced-woo-labels/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [visualsoftspace](https://wordpress.org/support/users/visualsoftspace/)
 * Last activity: [5 years, 2 months ago](https://wordpress.org/support/topic/plugin-not-using-localtime/#post-14271015)
 * Status: resolved