mozes/smpp.pdu — pull request #15 by dliappis (2013-06-30 13:14:13+00:00)
Title: smpp relative time parsing improvements

parsing PDUs with relative time containing months == 00 or days == 00 would fail as existing code calls parse_absolute_time which depends on datestring which in turn will not accept such values.

Code in parse_relative_time() and unparse_relative_time() has been rewritten to parse smpp relative time correctly.

While doing this, I noticed the use of str as a variable in various places which is a python builtin function! This has been replaced with dtstr in the aforementioned methods and will try to replace all further occurrences in the future.

Finally, a new test case "test_parse_relative_mins_only" has been written in SMPPTimeTest to ensure this bug will not resurface.