Wireshark-bugs: [Wireshark-bugs] [Bug 6712] Time field decoding error in SMPP Protocol
Date: Fri, 27 Jan 2012 17:07:24 -0800 (PST)
https://bugs.wireshark.org/bugzilla/show_bug.cgi?id=6712

Jeff Morriss <jeff.morriss.ws@xxxxxxxxx> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |RESOLVED
                 CC|                            |jeff.morriss.ws@xxxxxxxxx
         Resolution|                            |FIXED

--- Comment #2 from Jeff Morriss <jeff.morriss.ws@xxxxxxxxx> 2012-01-27 17:07:23 PST ---
The problem was that SMPP was trying to take the timezone (offset from UTC)
from the message into account by adjusting the time (in this case by 3 hours).
Unfortunately Wireshark (and, in fact, most computer programs) has(have) no way
of telling the OS routines responsible for formatting the time to use a
specific (in this case specified by the message) timezone.

I've fixed that in rev 40742 by first changing the time returned by mktime()
back into UTC and then displaying the result in UTC.  (Wireshark can display
times in either local time or in UTC.  Since local time may not be the
appropriate time zone, UTC seems to be the way to go.)

-- 
Configure bugmail: https://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are watching all bug changes.