Codeinwp / feedzy-rss-feeds

FEEDZY RSS Feeds is an easy-to-use plugin giving you RSS aggregator and autoblogging functionality. Bring the best RSS feeds to your site.
GNU General Public License v2.0
81 stars 26 forks source link

fix: change item_date to convert to site timezone on import #939

Closed preda-bogdan closed 6 months ago

preda-bogdan commented 6 months ago

Summary

Fix item date import to respect timezone settings. Added unit test to validate item import date based on the timezone settings.

Will affect the visual aspect of the product

NO

Screenshots

UTC ![image](https://github.com/Codeinwp/feedzy-rss-feeds/assets/23024731/88aebf04-a97f-4151-883e-5d0f9660cf77) ![image](https://github.com/Codeinwp/feedzy-rss-feeds/assets/23024731/8d55845f-d2b6-44a5-8c47-c94dcee818f0) ![image](https://github.com/Codeinwp/feedzy-rss-feeds/assets/23024731/4af19892-1206-4570-b722-5192e30d71ff)
UTC +2 ![image](https://github.com/Codeinwp/feedzy-rss-feeds/assets/23024731/51a0247e-b2e0-4729-9abd-ed464c6ff2cf) ![image](https://github.com/Codeinwp/feedzy-rss-feeds/assets/23024731/8d55845f-d2b6-44a5-8c47-c94dcee818f0) ![image](https://github.com/Codeinwp/feedzy-rss-feeds/assets/23024731/d28c5af9-10dd-4124-8244-97d533bbade8)

Test instructions

  1. On a fresh instance with Feedzy.
  2. Set the Timezone from Settings > General to a desired locale.
  3. Create a new import where we map the #item_date.
  4. Import a feed, and check that the imported items are offset correctly on import based on

Check before Pull Request is ready:

Closes #832.

pirate-bot commented 6 months ago

Plugin build for 40acd786f101532b2d408b86e6bf0d9f78271be6 is ready :bellhop_bell:!

irinelenache commented 6 months ago

@preda-bogdan Tested and everything's fine here ✔️

pirate-bot commented 6 months ago

:tada: This PR is included in version 4.4.9 :tada:

The release is available on GitHub release

Your semantic-release bot :package::rocket: