Problem with dates on some GMail messages

15 views
Skip to first unread message

Steven Frank

unread,
Jun 19, 2008, 10:46:54 PM6/19/08
to Google Data Protocol
Its seems that some GMail messages are causing my application to throw
an error, but only some.

The error is:
The DateTime represented by the string is not supported in calendar
System.Globalization

The last time it happened, it was caused by an email from this
group... I can provide the email or details for any who are
interested.

Thanks

Steven Frank

unread,
Jun 20, 2008, 9:33:14 AM6/20/08
to Google Data Protocol
Here is some additional information, the date for the message that is
scausing the problem is:

2008-06-20T24:06:46Z

Clearly that is a problem...I just don't know how it would be occuring
or what the source of that date is.

Jeff Fisher (Google)

unread,
Jun 23, 2008, 2:06:24 PM6/23/08
to Google Data Protocol
Hi,

I'm a bit confused. So you have a program, which is reading your GMail
(from IMAP I might assume?) and an e-mail sent to you from Google
Groups (this group, it seems) uses a date format your code doesn't
like? I'm not sure what I can do to help you with this, since it's not
related to any of the Data APIs that I can tell.

Cheers,
-Jeff

Steven Frank

unread,
Jun 23, 2008, 2:19:27 PM6/23/08
to Google Data Protocol
To be clear, its not an issue with the format of the date, its the
date itself. As you can see from my previous post, the hour is set to
"24". I'm certainly not the master of all valid dates in the world,
but I've never seen a date with an hour part of 24. As a matter of
fact, the DateTime.Parse method (.NET) is what is throwning up on this
particular date.

I bring this up here for 2 reasons; one, the email in question came
via this group and two, I'm reading it via the Google API.

Does this help?

On Jun 23, 1:06 pm, "Jeff Fisher (Google)" <api.jfis...@google.com>
wrote:
> > > Thanks- Hide quoted text -
>
> - Show quoted text -

Jeff Fisher (Google)

unread,
Jun 23, 2008, 9:38:26 PM6/23/08
to Google Data Protocol

Ahh... yes.. hour 24 doesn't really make any sense. Maybe in
Neverwhere.

Groups itself doesn't have a Data API though, which API are you using
that you are encountering this date in?

Cheers,
-Jeff

Steven Frank

unread,
Jun 24, 2008, 9:10:42 AM6/24/08
to Google Data Protocol
I'm not sure I'm explaining this right, let me try again...

I have a .NET app that uses the GMail feed to retreive my messages
from GMail. It is this application that encountered the problem.

I am (obviously) subscribed to this group and as part of that, I have
the group send me an email (to my GMail account) each time a message
is posted to the group. It is one of these messages that exhibited
the problem.

Does that help?

On Jun 23, 8:38 pm, "Jeff Fisher (Google)" <api.jfis...@google.com>
> > > - Show quoted text -- Hide quoted text -

Frank Mantek

unread,
Jun 24, 2008, 10:35:54 AM6/24/08
to google-he...@googlegroups.com
Can you use FiddlerTool or another capture program to get the xml of
the message that is creating that error. What code are you using to
parsing this? (I know it's .NET, but if you are reading it from gmail,
are you using google libraries, rolled your own etc?)

Frank Mantek
Google

Reply all
Reply to author
Forward
0 new messages