How to fire event trigger on all devices at the same time regardless of time zone
If my app fires an event at 9PM EST, it should also trigger that event at 6PM PST.
I am currently parsing a feed and this feed says the event will run on 9
pm EST. Without changing the feed, what is the best way to make my code universal for everyone who opens the application in any time zone.
+3
source to share
3 answers
use TimeToNow with prettytime http://www.ocpsoft.org/prettytime/
it will give you a result like 4 hours ago or a minute ago which will remove the timezone factors
0
source to share