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:
: [EMAIL PROTECTED] /tmp > ./testt 20050601T010
-1 20050601T010
: [EMAIL PROTECTED] /tmp > ./testt 20050601T010Z
-1 20050601T010Z
: [EMAIL PROTECTED] /tmp >
--
desktop-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/desktop-bugs