saw303 / grails-ic-alender

iCalender Plugin for Grails
http://grails.org/plugin/ic-alendar
Other
8 stars 11 forks source link

Support for UTC export #7

Closed gibbster closed 10 years ago

gibbster commented 10 years ago

Hi,

First of all, great plugin. Extremely useful, and easy to use.

As far as I can tell, there's no current way to export start and end event dates in UTC format. Is that right? Poking around your code and the iCal4J forums seems to indicate that to do so the "setUtc" method would need to be called on the DateTime objects.

If you know any work arounds to get this to work or alternate approaches I would love to hear about it.

Thanks again, David

saw303 commented 10 years ago

Hi David

Thank you for using this plugin and for your feedback.

Yes, using setUtc on a DateTime instance seems to be the way to achieve it. I am currently on vacation so I wont have time to implement this. Maybe you what to implement it yourself and provide it as a pull request?

Thank you, Silvio

saw303 commented 10 years ago

Found some spare time :) Have a look at this commit aa8deba98857f59b101e5a51abf3702319685b4c

Does this solve your issue?

saw303 commented 10 years ago

Fixed in version 0.4.0.

gibbster commented 10 years ago

Brilliant! Thanks!