rapidpro / rapidpro-python

Python client library for the RapidPro API
BSD 3-Clause "New" or "Revised" License
18 stars 27 forks source link

support parsing iso8601 datetimes format with timezone #53

Closed norkans7 closed 6 years ago

nicpottier commented 6 years ago

Although I think moving to the iso8601 library is the right call, created_on and modified_on aren't actually changing formats. The thing that changes format is the "value" on the runs endpoint, which was something like 2017-01-12 05:30 and will now be ISO. The rapidpro-python library doesn't really concern itself with parsing values from the runs endpoint, but rather passes it down as a string, but having a parse method within the library that facilitates that parsing is probably good.

norkans7 commented 6 years ago

Which value? I think value can be a string which was matched by the rule

nicpottier commented 6 years ago

For a ruleset that is a date match, then the value is the org formatted date, ie something like 2017-01-12 05:30 Not sure UReport actually uses any date values anywhere.