edcesar / flexlib

Automatically exported from code.google.com/p/flexlib
0 stars 0 forks source link

SimpleScheduleEntry displays erroneous times #54

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. Set a new entry's startDate and endDate.
2. Add the entry to an IList:
   row = new ArrayCollection();
3. Add the row to an Array:
  rows.push( row );
4. Set the ScheduleViewer's dataProvider to be this Array:
   rowsDataProvider = new ArrayCollection( rows );

The generated entry is correctly placed in the ScheduleViewer at the 
correct Timeline time, but its displayed start and end times are off by 
one hour...

This is happening in MyEclipse/Flex Builder 2 plugin, running in Windows 
Vista.

I print this out before setting the dates:

string date 2007/09/14 13:07:00 becomes Fri Sep 14 2007 13:07:00 GMT+0200

The only weird thing is that I don't know where the GMT+2 is coming from, 
since I'm at GMT+1... and I don't provide time zone information in the 
original date string!

Original issue reported on code.google.com by cbu.ki...@gmail.com on 14 Sep 2007 at 3:13

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 19 Sep 2007 at 4:35

GoogleCodeExporter commented 8 years ago

Original comment by dmcc...@gmail.com on 26 Dec 2007 at 7:31

GoogleCodeExporter commented 8 years ago
I have experienced this problem after retrieving schedules from a database. It 
is
caused by the setTime(date:Date, time:Number):Date function in the Dateutil.as 
class.
In this method it calculates the hour from the time parameter, however the time
parameter represents the UTC and not the local time this results in an offset. 

To fix this problem it is necessary to set the hoursUTC value instead.

Original comment by tim.p.jo...@gmail.com on 5 May 2009 at 12:26