Thanks to your explanations in your wiki topic about timezones, I know how to know if I have to compute dates with a vtimezone element... hm... ok .... but how ???
There are so much rules in VTIMEZONE, argh, what a nightmare!
I think it might be very useful to have a compute(Date date) method on the VTimezone element, in order to apply the vtimezone offsets on the date (considering the date is in UTC time)...
What do you think about this idea ? I know it's a very big project, and this is asking a lot, but timezones are very importants in iCalendars... and a very big problem too !!
I'm waiting for your answer, hoping you will agree with me, but I'll understand if you don't because of the complexity of the thing !
Thanks for reading the post :D
Bye,
Perrine
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It is very difficult to do, due to a limitation with the Java Date API. The problem is that Java "TimeZone" objects do not tell you the start/end times for Daylight Savings Time for a given year. This information is needed in order to create the DAYLIGHT and STANDARD components.
What I really really need to code is:
a "VTimeZone(java.util.TimeZone)" constructor, which creates a VTimeZone component, given a Java TimeZone object
and a "VTimeZone.toJavaTimeZone()" method, which converts an iCal TIMEZONE component into a Java TimeZone object. :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, I know it's really difficult and boring, and I'm sorry to ask you for that :$
I'm not sure to understand how you can convert a VTIMEZONE into Java timezone, because there are so many possibilities in a VTIMEZONE... are you sure you will always find a corresponding Java Timezone ??
What I was trying to do (but I put it aside) was to apply the offsets directly on my date if the conditions were met.
Maybe there is no miracle solution... :(
I don't want to pressure you, but when do you think to add this features ? :D :$
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
It wouldn't have to convert a VTIMEZONE component into an existing Java TimeZone because it is possible to create your own TimeZone instances ("SimpleTimeZone" class).
I will continue to look into the problem. I don't know how long it will take, or if it is even possible. :(
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Oh, okay, I didn't know this "SimpleTimeZone" class... As if the "timezones" could be "simple" !! ;)
I wish you good luck with timezones, and thank you to worry about it!
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Timezones, timezones, always timezones ....
Hello ! :D
Thanks to your explanations in your wiki topic about timezones, I know how to know if I have to compute dates with a vtimezone element... hm... ok .... but how ???
There are so much rules in VTIMEZONE, argh, what a nightmare!
I think it might be very useful to have a compute(Date date) method on the VTimezone element, in order to apply the vtimezone offsets on the date (considering the date is in UTC time)...
What do you think about this idea ? I know it's a very big project, and this is asking a lot, but timezones are very importants in iCalendars... and a very big problem too !!
I'm waiting for your answer, hoping you will agree with me, but I'll understand if you don't because of the complexity of the thing !
Thanks for reading the post :D
Bye,
Perrine
It is very difficult to do, due to a limitation with the Java Date API. The problem is that Java "TimeZone" objects do not tell you the start/end times for Daylight Savings Time for a given year. This information is needed in order to create the DAYLIGHT and STANDARD components.
What I really really need to code is:
Yes, I know it's really difficult and boring, and I'm sorry to ask you for that :$
I'm not sure to understand how you can convert a VTIMEZONE into Java timezone, because there are so many possibilities in a VTIMEZONE... are you sure you will always find a corresponding Java Timezone ??
What I was trying to do (but I put it aside) was to apply the offsets directly on my date if the conditions were met.
Maybe there is no miracle solution... :(
I don't want to pressure you, but when do you think to add this features ? :D :$
It wouldn't have to convert a VTIMEZONE component into an existing Java TimeZone because it is possible to create your own TimeZone instances ("SimpleTimeZone" class).
I will continue to look into the problem. I don't know how long it will take, or if it is even possible. :(
Oh, okay, I didn't know this "SimpleTimeZone" class... As if the "timezones" could be "simple" !! ;)
I wish you good luck with timezones, and thank you to worry about it!
Thanks. :)