chenxiaolong / BCR

A Basic Call Recorder for rooted Android devices
GNU General Public License v3.0
1.76k stars 113 forks source link

Date format give wrong monthly number #386

Closed lavoie005 closed 1 year ago

lavoie005 commented 1 year ago

Hi and thx for that awesome app. I dont know what happen but now when i record date format i recive bad month Format is [{phone_number} |r][[{contact_name} |{caller_name} |{call_log_name}] |]{date:dd-mm-yyyy@k'h'mm(XXX zzzz)}[-{direction}|]

Date i recive for july 21 2023 is 21-59-2023

The month change each time I recive 57, 58 and last one is 59

Any idea what happen?

Thx in advance

chenxiaolong commented 1 year ago

Looking at https://developer.android.com/reference/java/time/format/DateTimeFormatterBuilder#appendPattern(java.lang.String), I think you want to use uppercase MM. Lowercase mm is for the minute.

lavoie005 commented 1 year ago

you are so awesome, that work perfectly, thank a lot :)