From 0d5f2faf2cd61838bbebdd9b2d0e7481a633f035 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Wed, 1 Sep 2004 18:48:31 +0000 Subject: Use the value for the UNIX epoch from RFC 868 for the difference between the Time Protocol epoch and the UNIX epoch; that wasn't the value we were using. svn path=/trunk/; revision=11876 --- epan/dissectors/packet-time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/dissectors/packet-time.c') diff --git a/epan/dissectors/packet-time.c b/epan/dissectors/packet-time.c index 73c115d13d..6d74ef60e4 100644 --- a/epan/dissectors/packet-time.c +++ b/epan/dissectors/packet-time.c @@ -65,7 +65,7 @@ dissect_time(tvbuff_t *tvb, packet_info *pinfo, proto_tree *tree) guint32 delta_seconds = tvb_get_ntohl(tvb, 0); proto_tree_add_uint_format(time_tree, hf_time_time, tvb, 0, 4, delta_seconds, "%s", - abs_time_secs_to_str(delta_seconds-(guint32)(70*365+18)*24*3600)); + abs_time_secs_to_str(delta_seconds-2208988800U)); } } } -- cgit v1.2.3