From 4fde145bd2dceda9edf1f231a57794965ddc0bd7 Mon Sep 17 00:00:00 2001 From: Guy Harris Date: Thu, 10 Dec 2009 22:19:29 +0000 Subject: Add an argument to abs_time_to_str() and abs_time_secs_to_str() indicating whether the time should be shown as local time or UTC. For now, always pass FALSE, meaning "show as local time". Clean up some stuff in the SNMP dissector, use abs_time_secs_to_str() for times with one-second resolution, and update a comment in various macros in the WSP dissector, while we're at it. svn path=/trunk/; revision=31227 --- epan/wslua/wslua_util.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'epan/wslua/wslua_util.c') diff --git a/epan/wslua/wslua_util.c b/epan/wslua/wslua_util.c index 05fe37ebae..eb426feadf 100644 --- a/epan/wslua/wslua_util.c +++ b/epan/wslua/wslua_util.c @@ -64,7 +64,7 @@ WSLUA_FUNCTION wslua_format_date(lua_State* LS) { /* Formats an absolute timesta then.secs = (guint32)floor(time); then.nsecs = (guint32) ( (time-(double)(then.secs))*1000000000); - str = abs_time_to_str(&then); + str = abs_time_to_str(&then, FALSE); lua_pushstring(LS,str); WSLUA_RETURN(1); /* A string with the formated date */ -- cgit v1.2.3