Time zone issue

malcfreem

Member
Licensed User
Longtime User
Hi all. In testing my app, which now works fine for me here in the UK, I stumbled upon a problem when my app is used in a different timezone...

My app stores dates and times in the users calendar. These dates and times are all in UK local time. If I set my tablet and my calendar to for example Eastern time (5 hours behind the UK) and then add an event which takes place at 15:00 UK time, the calendar still shows it at 15:00 (but it should be 5 hours earlier in Eastern time).

What I think I have to do is find the devices timezone ( inc DST) and adjust the start time in my app. Any ideas how I could do this, please?

Thanks very much
 

malcfreem

Member
Licensed User
Longtime User
Cant work it out

Hi again.

I have thought about your solutions. Hard coding isnt really viable as there are over 40 entries in my database, each of which can contain five dates, so AHLocale seemed to be the way forward.

I then spent a couple of very frustrating days experimenting and I CANNOT get it to work for me.

Can you please tell me how I use AHLocale to achive what I need?

Grrrr!

Malc:BangHead:
 
Upvote 0
Top