Nmap Development mailing list archives
Re: minor bug
From: Brandon Enright <bmenrigh () ucsd edu>
Date: Wed, 11 Jul 2012 21:32:48 +0000
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wed, 11 Jul 2012 11:15:12 +0100 Martin Ross <martinjohnross () gmail com> wrote:
Sir/Madam, great software for enumerating my home network! One minor niggle; a scan report starts with this line, *"Starting Nmap 6.01 ( http://nmap.org ) at 2012-07-11 11:09 GMT Daylight Time"* * * There is no such time zone! UK is currently on BST = British Summer Time. GMT never changes. cheers, Martin
Hi Martin, I agree there is no such timezone but I think the problem is on your client. The relevant lines are: if (strftime(tbuf, sizeof(tbuf), "%Y-%m-%d %H:%M %Z", local_time) <= 0) fatal("Unable to properly format time"); log_write(LOG_STDOUT|LOG_SKID, "\nStarting %s %s ( %s ) at %s\n", NMAP_NAME, NMAP_VERSION, NMAP_URL, tbuf); As you can see the "GMT Daylight Time" is coming from the %Z format to strftime() Are you using Windows? This seems to be an issue with TimeZoneInfo() on Windows: https://connect.microsoft.com/VisualStudio/feedback/details/298123/timezoneinfo-believes-that-gmt-daylight-time-exists-but-there-is-no-such-thing In any case, if you want GMT-like-time I think you should use UTC as your timezone which should get around this odd issue. Regards, Brandon -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.19 (GNU/Linux) iEYEARECAAYFAk/98Q8ACgkQqaGPzAsl94J/HACdFt0f4DwkbKQFZB9LBf6YAfVl 5zgAoLFORR2dvxroFLmVN1IjZyFAfvMA =DX5p -----END PGP SIGNATURE----- _______________________________________________ Sent through the nmap-dev mailing list http://cgi.insecure.org/mailman/listinfo/nmap-dev Archived at http://seclists.org/nmap-dev/
Current thread:
- minor bug Martin Ross (Jul 11)
- Re: minor bug Brandon Enright (Jul 11)