time_from_isodate should not require seconds to be specified
Bug #35115 reported by
Tollef Fog Heen
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
evolution-data-server |
Invalid
|
Wishlist
|
|||
evolution-data-server (Ubuntu) |
Triaged
|
Wishlist
|
Ubuntu Desktop Bugs |
Bug 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/
int main(int argc, char **argv) {
printf("%d %s\n", time_from_
}
as our sample program, compiled using:
$ gcc $(pkg-config --libs --cflags libecal-1.2) test.c -o testt
We then get:
: tfheen@thosu /tmp > ./testt 20050601T010
-1 20050601T010
: tfheen@thosu /tmp > ./testt 20050601T010Z
-1 20050601T010Z
: tfheen@thosu /tmp >
Changed in evolution-data-server: | |
status: | Unknown → Unconfirmed |
Changed in evolution-data-server: | |
status: | Confirmed → Triaged |
Changed in evolution-data-server: | |
importance: | Unknown → Wishlist |
Changed in evolution-data-server: | |
status: | New → Invalid |
To post a comment you must log in.
Actually, this bug is bogus, since I forgot to include the seconds.
I think that time_from_isodate should be better at parsing the input, though and not require seconds.