evolution-data-server r10126 - in trunk/addressbook: . backends/file backends/vcf
- From: tobiasmue svn gnome org
- To: svn-commits-list gnome org
- Subject: evolution-data-server r10126 - in trunk/addressbook: . backends/file backends/vcf
- Date: Tue, 3 Mar 2009 04:27:19 +0000 (UTC)
Author: tobiasmue
Date: Tue Mar 3 04:27:19 2009
New Revision: 10126
URL: http://svn.gnome.org/viewvc/evolution-data-server?rev=10126&view=rev
Log:
2009-03-03 Tobias Mueller <tobiasmue svn gnome org>
* backends/vcf/e-book-backend-vcf.c (set_revision):
* backends/file/e-book-backend-file.c (set_revision):
Don't assume that GTimeVal is a long and use time_t instead
Patch by Matthias Drochner.
** Fixes bug 569108
Modified:
trunk/addressbook/ChangeLog
trunk/addressbook/backends/file/e-book-backend-file.c
trunk/addressbook/backends/vcf/e-book-backend-vcf.c
Modified: trunk/addressbook/backends/file/e-book-backend-file.c
==============================================================================
--- trunk/addressbook/backends/file/e-book-backend-file.c (original)
+++ trunk/addressbook/backends/file/e-book-backend-file.c Tue Mar 3 04:27:19 2009
@@ -174,10 +174,10 @@
{
char time_string[100] = {0};
const struct tm *tm = NULL;
- GTimeVal tv;
+ time_t t;
- g_get_current_time (&tv);
- tm = gmtime (&tv.tv_sec);
+ t = time(NULL);
+ tm = gmtime (&t);
if (tm)
strftime (time_string, 100, "%Y-%m-%dT%H:%M:%SZ", tm);
e_contact_set (contact, E_CONTACT_REV, time_string);
Modified: trunk/addressbook/backends/vcf/e-book-backend-vcf.c
==============================================================================
--- trunk/addressbook/backends/vcf/e-book-backend-vcf.c (original)
+++ trunk/addressbook/backends/vcf/e-book-backend-vcf.c Tue Mar 3 04:27:19 2009
@@ -218,10 +218,10 @@
{
char time_string[100] = {0};
const struct tm *tm = NULL;
- GTimeVal tv;
+ time_t t;
- g_get_current_time (&tv);
- tm = gmtime (&tv.tv_sec);
+ t = time(NULL);
+ tm = gmtime (&t);
if (tm)
strftime (time_string, 100, "%Y-%m-%dT%H:%M:%SZ", tm);
e_contact_set (contact, E_CONTACT_REV, time_string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]