First off, long-time member of this list and have gained a wealth of knowledge from the wisdom here. Thank You All.

I'm having a very confusing problem using the Date Object. I have a hotel reservation system built in flash, when an international reservation (outside of the US, mainly Europe ) comes through, the dates are off by 1 day. I cannot recreate the problem using any system setup in the US, only via a friend in London doing some testing for me.

Problem:
create new Date using May 20th 2006

var checkin = new Date(2006,5,20);

is getting converted to May 19th if you are in Europe, fine in the US.

In plain terms, someone is trying to book 5/20/06 thru 5/22/2006, but gets booked 5/19/06 thru 5/21/06 instead. This system has booked literally thousands of domestic US reservations and we've never seen this until we opened it up to international customers.

Any insight to why this could be happening, or any known workarounds for a problem like this would be wonderful. I haven't tried using the timezone offset yet, any ideas if that might be a cure?


Nick McNeill
Intellistrand
843-839-1480

_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to