bogkonstantin / android_income_sms_gateway_webhook

Simple Android incoming SMS to URL forwarder
MIT License
388 stars 109 forks source link

Feature Request: Date Format #42

Open o-data opened 1 year ago

o-data commented 1 year ago

Can we customize or allow for different type of date?

With my other app they only access date format as follow: YYYY-MM-DD HH:MM:SS

Currently the App is using Unix time which is good but I can't seem to convert it to a different format (ie. the above format).

PS: Thank you for creating this App!

davchana commented 11 months ago

https://stackoverflow.com/a/6078873

Its pretty easy to convert this raw unix timestamp to anything. Create a new instance of date from it, and get YYYY MM DD HH MM SS TTT or any combination.

o-data commented 11 months ago

Thanks @davchana , would you be able to provide a brief step by step? And look like I would also need to be able to re-build the APK as well?

pmalecka commented 7 months ago

here's a PR with the feature: https://github.com/bogkonstantin/android_income_sms_gateway_webhook/pull/66