I created a module for joomla, and it works out fine, it does calculate the time correctly, however I want to let the users be able to insert their own time zone when they use it on their website, so they can set it based on their country / time zone, so, showld I just add or substract the time difference or is there an easier way?
Either use javascript to detect or let them choose in in their account, the way you can in this forum. I recommend the second option. I hate to reply on javascript.
I actually want to let them choose it, in the module I want to add an option so they can select the timezone and then let php calculate the difference, but I am looking for an easier way than adding or substracting the difference, well, if I happen to find an easier way I will post it here for reference
As I understand that should give me the time difference to the target day, in seconds based on the America/Mexico_City time zone, but is giving me a completely different result