aboutsummaryrefslogtreecommitdiffstats
path: root/epan/dissectors/packet-mms.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2010-05-21 06:33:25 +0000
committerGuy Harris <guy@alum.mit.edu>2010-05-21 06:33:25 +0000
commit927b7da34668bc9c0b2dd4c339e45278fd109c77 (patch)
tree7017587d5ae078490ee9b3be8ec6551e7df71d13 /epan/dissectors/packet-mms.c
parent4dcaf67f37f89d699a42089001f04c5daf9558e2 (diff)
Have abs_time_to_str() and abs_time_to_str_secs() take an additional
argument indicating whether to include the time zone in the string. If we're constructing a display filter, don't include the time zone, otherwise do. Fixes bug 4756. svn path=/trunk/; revision=32913
Diffstat (limited to 'epan/dissectors/packet-mms.c')
-rw-r--r--epan/dissectors/packet-mms.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/epan/dissectors/packet-mms.c b/epan/dissectors/packet-mms.c
index 70df08041b..3459dcb1a1 100644
--- a/epan/dissectors/packet-mms.c
+++ b/epan/dissectors/packet-mms.c
@@ -1865,7 +1865,7 @@ dissect_mms_TimeOfDay(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _
ts.secs = (days + 5113) * 86400 + milliseconds / 1000;
ts.nsecs = (milliseconds % 1000) * G_GINT64_CONSTANT(1000000U);
- ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC);
+ ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
if(hf_index >= 0)
{
proto_tree_add_string(tree, hf_index, tvb, offset, len, ptime);
@@ -1948,7 +1948,7 @@ dissect_mms_UtcTime(gboolean implicit_tag _U_, tvbuff_t *tvb _U_, int offset _U_
ts.secs = seconds;
ts.nsecs = nanoseconds;
- ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC);
+ ptime = abs_time_to_str(&ts, ABSOLUTE_TIME_UTC, TRUE);
if(hf_index >= 0)
{