Skip to content

Return SMS timestamp in ISO8601 format

Amol Lad requested to merge (removed):sms-timestamp-iso8601 into master

Currently src/mm-sms-part-3gpp.c:sms_decode_timestamp() returns timestamp in YYMMDDHHMMSS+ZZ format. There are many drawbacks in the way this format is implemented by this function.

  1. +ZZ captures only hours and not minutes
  2. YY is only 2 digits. This makes this format not compliant with ISO8601

This changes make this sms_decode_timestamp() return ISO8601 compliant string in the format YYYY-MM-DDTHH:MM:SS+HHMM

Merge request reports

Loading