BabDev / Podcast-Manager

Podcast Manager is a suite of extensions allowing users to host and manage a podcast feed from their Joomla! site.
http://www.babdev.com/extensions/podcast-manager
40 stars 15 forks source link

TimeZone Bug? #217

Open Prman1 opened 9 years ago

Prman1 commented 9 years ago

When I added some new podcasts I added a time as well as a date in the created date field in the publishing tab. I noticed that for podcasts with a starting time of 7:00 pm, the date was listed as the next day in iTunes. Perhaps the component is not taking into account my site timezone setting, which is Chicago?

As a workaround, I removed the time so that it entered as 00:00:00

Is this a bug?

Thanks for all your great work! Stuart

mbabker commented 9 years ago

It should behave pretty similar to other core Joomla components. Times are stored to the database in UTC and should be converted in the UI based on the user/site configuration when they're rendered. https://github.com/BabDev/Podcast-Manager/blob/master/com_podcastmanager/site/views/feed/view.raw.php#L341 is where that's converted so I might need to change it to use the Joomla JDate object instead of the native PHP stuff which has the timezone conversion logic in place.