dez-dk/xbmc — comment on commit 00af6718b7d9f32d4445ff37c3fb65af2fa99ac2
File: xbmc/filesystem/HTTPDirectory.cpp line 157
By jmarshallnz:

I guess it's a RFC1123 datetime (DD-MMM-YYYY HH:MM) format you're checking for in both cases, though no timezone info allowed on the first regexp - might pay to check that one? We support outputting to RFC1123 already in CDateTime, so it seems reasonable to have a function to take in this info. However, this would likely involve 2 regexps (one to detect you've got a date, a second inside CDateTime to convert?)

Instead, perhaps a cleaner way would be a static function in CDateTime to convert from month string to month number? Then you can just feed year, month, day, hour, minute directly into CDateTime and get rid of the tm stuff. FTPParse.cpp could later be updated to use this function, obviously outside the scope of this PR (it uses pcrecpp to do it's matching so would need a bit more mucking about).