Use the value for the UNIX epoch from RFC 868 for the difference between
authorguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 1 Sep 2004 18:48:31 +0000 (18:48 +0000)
committerguy <guy@f5534014-38df-0310-8fa8-9805f1628bb7>
Wed, 1 Sep 2004 18:48:31 +0000 (18:48 +0000)
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

index 73c115d13d7d9089e828f7e99e710b5704668a67..6d74ef60e4e89b46f0257407107113713dd82d93 100644 (file)
@@ -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));
     }
   }
 }