Google Calendar title displayed incorrectly
Posted
by Don
on Stack Overflow
See other posts from Stack Overflow
or by Don
Published on 2010-05-15T21:54:34Z
Indexed on
2010/05/15
22:02 UTC
Read the original article
Hit count: 226
Hi,
I'm creating 2 Google calendars via the Java client API using the following Groovy method:
private CalendarEntry createGoogleCalendar(User user) throws ServiceException {
new CalendarEntry().with {calendar ->
title = new PlainTextConstruct(user.email)
summary = new PlainTextConstruct("Collection calendar for $user.email")
timeZone = new TimeZoneProperty("America/Montreal")
hidden = HiddenProperty.FALSE
def savedCalendar = googleCalendar.insert(CALENDAR_URL, calendar)
log.debug "Created calendar with title '$savedCalendar.title.plainText' for '$user.email'"
return savedCalendar
}
}
The logs show:
CalendarService - Created calendar with title '[email protected]' for '[email protected]' CalendarService - Created calendar with title '[email protected]' for '[email protected]'
so it appears that all is well. However when I look at the 1st calendar on the Google website, the title is shown as [email protected]
, though the summary is correctly shown as Collection calendar for [email protected]
.
Strangely, the title and summary are both shown correctly tor the 2nd calendar. This only started happening today, and I'm pretty sure the relevant code has not changed. I'm totally stumped....
© Stack Overflow or respective owner