From 45872588e94849856337d42fc51d30b11bb01e41 Mon Sep 17 00:00:00 2001 From: guy Date: Wed, 1 Sep 2004 18:48:31 +0000 Subject: [PATCH] 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. git-svn-id: http://anonsvn.wireshark.org/wireshark/trunk@11876 f5534014-38df-0310-8fa8-9805f1628bb7 --- epan/dissectors/packet-time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)); } } } -- 2.34.1