Skip to content

Tag: kotlin

change offset without changing local time

I have a date that is in IST format. Which is something like the I have the following code for the above output startOfDay is just and extenstion function which is something like this But, what the backend really wants is in the below format with -8:00. Is there any way I can format it to have -08:00 in the