thanks Ramsey! That’s the one folks were just talking about and it looks great.

I realize I’ve likely made my component wrong for this — here’s a look at the idea attached — 

set the date, pick a time and duration.

on the back of that UI, I used a lot of gregorian units and I likely should have just requested a format, and used the return value instead of this:

        int hourOfDay = myCalendar.get(GregorianCalendar.HOUR_OF_DAY);

something more like create a formatter, set it to just %h or whatever, set the timezone and use that return value populate my UI?

have another suggestion?








On Jul 8, 2013, at 12:24 PM, Ramsey Gurley <[email protected]> wrote:

Assuming _javascript_ is enabled on the client and you are using component actions, ERXTimeZoneDetector. 

Just providing a popup menu to let the user select it seems to be the most unbreakable approach. Maybe use the time zone detector in your page wrapper and if JS is disabled, then provide the popup when it really matters.

On Jul 8, 2013, at 8:54 AM, Jesse Tayler wrote:


what’s the best way to identify the timezone of a web user so my custom date setting component can show the right times?


_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/rgurley%40smarthealth.com

This email sent to [email protected]

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      ([email protected])
Help/Unsubscribe/Update your Subscription:
https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com

This email sent to [email protected]

Reply via email to