Gmail Calendar Documents Reader Web more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Single "All Day" events and the "All Day" Checkbox
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  3 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Jazzwhistle  
View profile  
 More options Nov 22 2009, 4:46 am
From: Jazzwhistle <notesandto...@gmail.com>
Date: Sat, 21 Nov 2009 19:46:22 -0800 (PST)
Local: Sun, Nov 22 2009 4:46 am
Subject: Single "All Day" events and the "All Day" Checkbox
Hi,

I'm having trouble getting the "all day" checkbox to show as checked
for single all day events.

Repeat events are not a problem, and by defining all day events as
00:00  until 00:00 the next day,  Google Calendars displays the events
the same as other all day events (ie, as an "all day" bar at the top
of the day) but the checkbox "All Day" remains unchecked... which is a
problem when you want to then sync Google with other Calendar
software...

I found an old thread here (now closed for replies, relevant text
copied below) where Ronnotel wrote that he "modified When.Save
(XmlWriter writer)" to define dates as startTime.ToString("yyyy-MM-
dd") - but I'm unsure how to do this, or if it is safe - I don't want
that happening for non--all day events too.

Thanks for any help,
Neil

**********
from
http://groups.google.com/group/google-calendar-help-dataapi/browse_th...
:

I believe the problem is in the method:

   When.Save(XmlWriter writer)

The logic will only write a UTC-type date string into the Xml string,
whereas dates need to be in the format yyyy-MM-dd for the event to be
interpreted as 'All-day'. I made the following mods to
When.Save(XmlWriter writer):

//string date = Utilities.LocalDateTimeInUTC(startTime);
string date = startTime.ToString("yyyy-MM-dd");

and

//string date = Utilities.LocalDateTimeInUTC(endTime);
string date = endTime.ToString("yyyy-MM-dd");

and then used the following code to define my event:

EventEntry appt = new EventEntry();
appt.Title.Text = "Test";
appt.Content.Content = "test";
When when = new When();
when.StartTime = new DateTime(2006, 5, 9);
when.EndTime = new DateTime(2006, 5, 10);
appt.Times.Add(when);
service.Insert(query.Uri, appt);

Result was a one-day event properly marked as 'All-Day'


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jazzwhistle  
View profile  
 More options Nov 22 2009, 3:06 pm
From: Jazzwhistle <notesandto...@gmail.com>
Date: Sun, 22 Nov 2009 06:06:26 -0800 (PST)
Local: Sun, Nov 22 2009 3:06 pm
Subject: Re: Single "All Day" events and the "All Day" Checkbox
I should have been more clear about one thing - I'm sending events
using "when", and without any time data (ie when.starttime is
formatted #9/13/2009#) for all day events.  These display in Google as
a timeless all day event, albeit from 00:00 until 00:00 the following
day instead of using the "All Day" checkbox.

    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Jazzwhistle  
View profile  
 More options Nov 24 2009, 1:27 pm
From: Jazzwhistle <notesandto...@gmail.com>
Date: Tue, 24 Nov 2009 04:27:15 -0800 (PST)
Local: Tues, Nov 24 2009 1:27 pm
Subject: Re: Single "All Day" events and the "All Day" Checkbox
Found it... why doesn't the documentation never mentioned about the
"When"'s AllDay flag?!

On Nov 22, 3:06 pm, Jazzwhistle <notesandto...@gmail.com> wrote:


    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Create a group - Google Groups - Google Home - Terms of Service - Privacy Policy
©2010 Google