rwth-acis / moodle-data-proxy

3 stars 1 forks source link

[BUG] Moodle timestamp parsing #20

Closed BorisJov closed 3 years ago

BorisJov commented 4 years ago
  1. Summary - The proxy throws uncaught errors concerning parsed timestamps.
  2. Bug Details
    1. What? - Uncaught errors are logged that seem to indicate an error in parsing timestamps of JSONs received from Moodle.
    2. Where? - checkXAPITimestamp function
    3. When?/How often? - Almost every call
    4. How?/Current state - A timestamp in a json is received with the following format: "2020-09-30T18:03:09Z". The function expects a long so it produces an error.
  3. (Optional) Fixed state - This type of timestamp should just be parsed/handled correctly.
BorisJov commented 3 years ago

Bug was due to improper (unexisting) parsing of date format. Now fixed