wordpress-parsi / wp-parsidate

Integrates the Solar Hijri (Persian) calendar in WordPress.
https://wp-parsi.com
GNU General Public License v2.0
54 stars 28 forks source link

Problem with `YITH_WC_Product_Countdown` plugin and forced changing date field to Jalali date #93

Closed Mehran91z closed 7 months ago

Mehran91z commented 3 years ago

There is bug with using v3.0.3 and yith woocommerce countdown plugin, So we need to have Gregorian date in 'countdown section' in product edit page, but Parsidate will changed it in Jalali date after page load.

So I've added this line in 'hook list' textarea field in Parsidate plugin settings page: date_i18n,write_tab_options,YITH_WC_Product_Countdown

But the problem changed and not solved! Now we will see "Y-m-d" text in date field noticed above in product edit page.

The problem fixed (not by standard way) after changed this line: wp-parsidate/includes/fixes-dates.php:161:

return $format;

to:

return date($format, $timestamp);

So please check it out and fix it by standard way as you know. Thanks in advance.

Mehran91z commented 3 years ago

Oh, I see that now its solved in v3.2.0-alpha in master branch. Thank you.

Mehran91z commented 3 years ago

In new version 4.0.0 it does not work again and set date field to "Y-m-d" after save!

Please check it out.

man4toman commented 10 months ago

As I see, this is a premium plugin, we don't have any support for premium plugins but if you purchased the original version, let us know.

man4toman commented 7 months ago

I'm going to close this issue due to inactivity.