aboutsummaryrefslogtreecommitdiffstats
path: root/epan/wslua/wslua_util.c
diff options
context:
space:
mode:
authorGuy Harris <guy@alum.mit.edu>2009-12-10 22:19:29 +0000
committerGuy Harris <guy@alum.mit.edu>2009-12-10 22:19:29 +0000
commit4fde145bd2dceda9edf1f231a57794965ddc0bd7 (patch)
tree7c14448b49715a60aefc583ab03dc2796a151499 /epan/wslua/wslua_util.c
parente1a76d5e2bfd3ecf9ab082a46dc2aa9c4bd4d4e2 (diff)
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
Diffstat (limited to 'epan/wslua/wslua_util.c')
-rw-r--r--epan/wslua/wslua_util.c2
1 files changed, 1 insertions, 1 deletions
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 */