After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 349770 - time_from_isodate should not require seconds to be specified
time_from_isodate should not require seconds to be specified
Status: RESOLVED DUPLICATE of bug 409200
Product: evolution-data-server
Classification: Platform
Component: Calendar
1.8.x (obsolete)
Other Linux
: Normal enhancement
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-08-03 09:35 UTC by Sebastien Bacher
Modified: 2017-08-24 16:06 UTC
See Also:
GNOME target: ---
GNOME version: Unversioned Enhancement



Description Sebastien Bacher 2006-08-03 09:35:14 UTC
That bug has been opened on https://launchpad.net/distros/ubuntu/+source/evolution-data-server/+bug/35115

"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@thosu /tmp > ./testt 20050601T010
-1 20050601T010
: tfheen@thosu /tmp > ./testt 20050601T010Z
-1 20050601T010Z
: tfheen@thosu /tmp >
...
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."
Comment 1 Matthew Barnes 2008-03-11 00:59:05 UTC
Bumping version to a stable release.
Comment 2 Milan Crha 2017-08-24 15:55:07 UTC
First of all, one digit hour/minute/second is not correct, the number of digits after the 'T' is supposed to be even, not odd. Second, yes, the ISO standard allows various simplifications in the format, even without minutes.

Anyway, this is a very old request, and nobody else is requesting it, thus I'm WontFix-ing it. Not because the change would be hard, but because I do not believe that anyone is still waiting for the change.
Comment 3 Milan Crha 2017-08-24 16:06:28 UTC
Okay, there's more generic bug #409200.

*** This bug has been marked as a duplicate of bug 409200 ***