commit 781ae09012f6eb8be00c0a680b2877ef40c5da26
Author: Christophe Fergeau <[email protected]>
Date: Mon Sep 20 15:03:21 2010 +0200
Add comment about mac epoch
I always forget when it starts, and since the sqlite databases use
a different epoch for their timestamps, things were getting confusing
src/itdb_tzinfo.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/itdb_tzinfo.c b/src/itdb_tzinfo.c
index 9889c89..ded4dd2 100644
--- a/src/itdb_tzinfo.c
+++ b/src/itdb_tzinfo.c
@@ -47,6 +47,7 @@
static gboolean parse_tzdata (const char *tzname, time_t start, time_t end,
int *offset, gboolean *has_dst, int *dst_offset);
+/* Mac epoch is 1st January 1904 00:00 in local time */
G_GNUC_INTERNAL time_t device_time_mac_to_time_t (Itdb_Device *device, guint64
mactime)
{
g_return_val_if_fail (device, 0);
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
gtkpod-cvs2 mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/gtkpod-cvs2