Explaining a bit more on the question I raised earlier.

We have an issue in a custom component, The issue is being caused only in
TimeZones which are effected by the Day Light Savings.

As we are aware, that day light savings changed from this Sun ,November 1st
2009, only than we are aware of this.

Below is sample test written FYI,

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; layout="absolute"
xmlns:local="*">
    <mx:Script>
        <![CDATA[
            import mx.controls.Alert;

            private function test():void {
                var date1:Date = new Date(2009,10,1,0);
                var date2:Date = new Date(2009,10,1,1);
                Alert.show("Date 1 :: "+date1+"   Date 2 :: "+date2);
            }
        ]]>
    </mx:Script>
    <mx:Button click="test()" label="Test"/>
</mx:Application>

When created a Date object for 00:00 and 01:00 hours on 1st Nov, these are
the results appeared
Date 1 :: Sun Nov 1 00:00:00 GMT-0400 2009
Date 2 :: Sun Nov 1 01:00:00 GMT-0500 2009

As observed, at Nov 1 00:00 the GMT is -0400 and at Nov 1 01:00 the GMT is
-0500. This is causing a bit of unknown errors in the component.

So the question, is there a way to Ignore the local timezone and just make
use of Date object.

PS: I tried converting the local time to UTC. This didn't work out.

Madan N

On Tue, Nov 17, 2009 at 5:10 AM, Madan Narra <[email protected]>wrote:

> Hi All,
>
> Is it possible to create a Date object without holding the TimeZone ?
>
> The date object should just be "Thu Nov 19 00:00:00 2009 " instead of "Thu
> Nov 19 00:00:00 GMT-0500 2009 " just ignoring the time zone
>
> Any ideas how to implement this.
>
> --
> Thanks,
> Madan N
>



-- 
Thanks,
Madan N

--

You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=.


Reply via email to