[Bug 35115] time_from_isodate only handles dates, not times
Tollef Fog Heen
tfheen at canonical.com
Wed Mar 15 21:27:04 UTC 2006
Public bug reported:
https://launchpad.net/malone/bugs/35115
Affects: evolution-data-server libecal1.2-dev (Ubuntu)
Severity: Normal
Priority: (none set)
Status: Unconfirmed
Description:
>From the description of time_from_isodate:
* time_from_isodate:
* @str: Date/time value in ISO 8601 format.
*
* Converts an ISO 8601 UTC time string into a time_t value.
However, it doesn't handle times, only dates:
With
#include <stdio.h>
#include <libecal/e-cal-time-util.h>
int main(int argc, char **argv) {
printf("%d %s\n", time_from_isodate(argv[1]), argv[1]);
}
as our sample program, compiled using:
$ gcc $(pkg-config --libs --cflags libecal-1.2) test.c -o testt
We then get:
: tfheen at thosu /tmp > ./testt 20050601T010
-1 20050601T010
: tfheen at thosu /tmp > ./testt 20050601T010Z
-1 20050601T010Z
: tfheen at thosu /tmp >
More information about the desktop-bugs
mailing list