6 messages in com.googlegroups.google-calendar-help-dataapiRe: Something wrong with timezone han...
FromSent OnAttachments
apptaro22 Apr 2006 13:20 
cgmckeever22 Apr 2006 13:36 
apptaro22 Apr 2006 14:04 
B....@JRAF.org24 Apr 2006 02:56 
B....@JRAF.org24 Apr 2006 05:41 
apptaro27 Apr 2006 10:19 
Subject:Re: Something wrong with timezone handling?
From:B....@JRAF.org (B.@JRAF.org)
Date:04/24/2006 02:56:23 AM
List:com.googlegroups.google-calendar-help-dataapi

I'm experiencing the same problems. Is there a way to know an EventEntry is for the whole day so to add 8 hours in that case? If not, I don't see any solution to the problem! Is this considered a bug?

Thanks for your help.

BoD

apptaro wrote:

cgmckeever, thank you for the message.

Yes, I thought I would convert the time from -7:00 to +9:00 by getValue() + (9 - (-7)) * 60 * 1000, but then I found that the getValue returns a value for +9:00 already!!

As I continued investigation, I found some more interesting results. With GMT+9 setting, I created the following two events: 1. 2006/04/30 00:00-01:00 2. 2006/04/30 all day

Then, I used API to display start time. The results are:

toString: 1. 2006-04-29T08:00:00.000-07:00 2. 2006-04-29

toUiString: 1. 2006-04-29 08:00 2. 2006-04-29

toStringRfc822: 1. 土, 29 4 2006 15:00:00 +0000 2. 土, 29 4 2006 07:00:00 +0000

new Date(getValue): 1. 2006-04-30 00:00 2. 2006-04-29 16:00

These results are even more wired. How am I supposed to know that I need to add +8:00 to the start time of all day event??