diff options
author | Guy Harris <guy@alum.mit.edu> | 2004-09-01 18:48:31 +0000 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2004-09-01 18:48:31 +0000 |
commit | 0d5f2faf2cd61838bbebdd9b2d0e7481a633f035 (patch) | |
tree | b685032594f03cd0bd83adfbc79c087082ab8b86 /epan/dissectors/packet-time.c | |
parent | 1622014b3b0090e88748dfef5550e5bbc2b132f7 (diff) | |
download | wireshark-0d5f2faf2cd61838bbebdd9b2d0e7481a633f035.tar.gz wireshark-0d5f2faf2cd61838bbebdd9b2d0e7481a633f035.tar.bz2 wireshark-0d5f2faf2cd61838bbebdd9b2d0e7481a633f035.zip |
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
Diffstat (limited to 'epan/dissectors/packet-time.c')
-rw-r--r-- | epan/dissectors/packet-time.c | 2 |
1 files changed, 1 insertions, 1 deletions
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)); } } } |