Wireshark-bugs: [Wireshark-bugs] [Bug 1836] Text2pcap doesn't handle timestamp starting with 00:
Date: Thu, 20 Sep 2007 13:10:02 +0000 (GMT)
http://bugs.wireshark.org/bugzilla/show_bug.cgi?id=1836





------- Comment #11 from wmeier@xxxxxxxxxxx  2007-09-20 13:09 GMT -------
Thanks for your help; I'm now able to duplicate the problem in my environment.

The issue (obvious in hindsight) is that using a default date of Jan 1, 1970
means that Jan 1, 1970 00:02:45.327 in a GMT + 1 timezone can't be converted to
a "seconds since Jan 1, 1970 00:00:00 GMT" value so mktime on your machine
returns a -1. 

(The blank times you saw when the pcap file was opened were due to a bug I
introduced in the latest text2pcap).

I think the right answer is to use a default of today's date if only the time
is supplied in the input file.

I'll have to think about what to use as the default date/time if the parse of
the date/time string fails.


-- 
Configure bugmail: http://bugs.wireshark.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.