Re: Problem importing datetime from xml

2009-12-29 Thread bax...@gretschpages.com
On Dec 29, 3:04 pm, Daniel Roseman  wrote:

> I think you're going to need to show us some of the actual code.

Thanks Daniel. I figured it out. In some instances stop time didn't
exist, so of course it wouldn't validate as a datetime. Adding a check
to set empty stop times to the start time fixed it.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




Re: Problem importing datetime from xml

2009-12-29 Thread Daniel Roseman
On Dec 29, 9:03 pm, "bax...@gretschpages.com" 
wrote:
> I probably shouldn't have posted this so close to Christmas. I'm
> hoping someone will see it now and be able to help.
>
> On Dec 21, 10:57 am, "bax...@gretschpages.com" 
> wrote:
>
> > I'm importing data from xml using xmltramp. Among the data are a bunch
> > of times formatted like so:
>
> >       2010-05-15 00:00:00
>
> > When I import that, I'm getting
>
> > Enter a valid date/time in -MM-DD HH:MM[:ss[.uu]] format.
>
> > I've tried altering the formatting, but I'm just not getting these
> > pulled in. Suggestions?

I think you're going to need to show us some of the actual code.
--
DR.

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




Re: Problem importing datetime from xml

2009-12-29 Thread bax...@gretschpages.com
I probably shouldn't have posted this so close to Christmas. I'm
hoping someone will see it now and be able to help.

On Dec 21, 10:57 am, "bax...@gretschpages.com" 
wrote:
> I'm importing data from xml using xmltramp. Among the data are a bunch
> of times formatted like so:
>
>       2010-05-15 00:00:00
>
> When I import that, I'm getting
>
> Enter a valid date/time in -MM-DD HH:MM[:ss[.uu]] format.
>
> I've tried altering the formatting, but I'm just not getting these
> pulled in. Suggestions?

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.




Problem importing datetime from xml

2009-12-21 Thread bax...@gretschpages.com
I'm importing data from xml using xmltramp. Among the data are a bunch
of times formatted like so:

  2010-05-15 00:00:00

When I import that, I'm getting

Enter a valid date/time in -MM-DD HH:MM[:ss[.uu]] format.

I've tried altering the formatting, but I'm just not getting these
pulled in. Suggestions?

--

You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-us...@googlegroups.com.
To unsubscribe from this group, send email to 
django-users+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.