More experimenting has revealed

that if I set tzShift it not only alters DateTime object that method is used 
on but also the value returned from DateTime returned from entry object

DateTime dateTime = entry.getTimes().get(0).getStartTime();
System.out.println("dateTime prior to tz shift is "
+ dateTime.toString() + "   entry.getTimes().get(0).getStartTime() is 
 "+entry.getTimes().get(0).getStartTime().toString());

dateTime prior to tz shift is 2011-03-28   
entry.getTimes().get(0).getStartTime() is  2011-03-28

dateTime.setTzShift(-5*60);

System.out.println("dateTime after to tz shift is "
+ dateTime.toString()+ "   entry.getTimes().get(0).getStartTime() is 
 "+entry.getTimes().get(0).getStartTime().toString());
dateTime after to tz shift is 2011-03-27-05:00 
entry.getTimes().get(0).getStartTime() is 2011-03-27-05:00 

I don't understand why   dateTime.setTzShift(-5*60)  changes tz of 
entry.getTimes().get(0).getStartTime() unless the tzShift field were static 
but
it isnt, its protected -- I'm not sure what that implies or is it because 
dateTime is actually  referencing the same object ?

-- 
You received this message because you are subscribed to the Google
Groups "Google Calendar Data API" group.
To post to this group, send email to
[email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://code.google.com/apis/calendar/community/forum.html

Reply via email to