If you want to modify settings on the server you'll need to modify the JVM
timezone setting. Also, it's possible the database has specific timezone
settings too.

On Tue, May 25, 2010 at 3:54 AM, raja_s_patil <kpr.rspa...@gmail.com> wrote:

>
>
> Thanks Evan Klein for response,
>
> I read the link you mentioned and tried to dig further to root cause of the
> problem. Just before executing the RO's method the values of birth time are
> as follows
>
> case 1 - 01 Jan 1900 05:30:00 and timezone offset is -330
> hence UTC should be 01 Jan 1900 00:00:00 and it is as expected
>
> but when I look at network monitor trace for request/response it is like
> --> birthTime=Mon Jan 01 05:53:20 IST 1900
>
> on server side timezone offset is -330
> here actually 23 min 20 seconds are being added.
>
> case 2 - 01 Jan 1900 05:59:59 and timezone offset is -330
> hence UTC should be 31 Dec 1899 23:59:59 and it is as expected
>
> When I look at Network Monitor it is birthTime=Mon Jan 01 05:59:59 IST 1900
> which gets translated on server side correctly. since timezone offset there
> is -330
>
> So I think that when AMF message is created conversion routine is
> behaving as expected but since I dont know much about timezones and other
> related matters First I will dig on server side about timezone offsets
> values and let you know. So long untill then.
>
> Thanks once again and regards
>
> Raja.
>
> --- In flexcoders@yahoogroups.com <flexcoders%40yahoogroups.com>, Evan
> Klein <e...@...> wrote:
> >
> > The crux of it is that on transfer of time the client is converting time
> to
> > local timezone. On get/set of these values the time must be converted to
> > whichever timezone you would like to operate in.
> >
> > Read this blog:
> >
> > http://cookbooks.adobe.com/post_Date_time_transfer_in_BlazeDS-13114.html
> >
> > Evan Klein
> > <
> http://cookbooks.adobe.com/post_Date_time_transfer_in_BlazeDS-13114.html>
> > On Sun, May 23, 2010 at 6:57 PM, raja_s_patil <kpr.rspa...@...> wrote:
> >
> > >
> > >
> > > Hello I am developing my first application in which I have to deal with
> > > time. On server side java VO i have defined the field as java.sql.Time
> > > and on flex side VO it has to be date.
> > >
> > > This is happening in windows XP client (browsers Firefox & Chrome)
> > > while inserting data I am making a fresh copy of Flex VO and time
> > > is set as 10:00:00 the timezone set for XP is +05:30 when its
> > > received at Java service its 10:23:20+0553 and gets saved to database
> > > as 10:23:20. When I retrieved from Java and send back to Flex for
> editing
> > > it comes back as 10:23:20+0553 and now if I set it again to 10:00:00 it
> gets
> > > saved properly. Means in edits no 00:23:20 additions
> > > are there but for inserts addition is there.
> > >
> > > I guess that since TimeZone is taken as +0553 rather than +0530
> > > 23 minutes might have added but what about 20 seconds why, where and
> how 00
> > > 23 20 being added ?
> > >
> > > Are any settings to be done on client side or server side.
> > > Server is KUbuntu 9.10 java latest installed from repository and
> windows
> > > xp being used as VM on Vmware all set up is on Dell Vostro 1710 Laptop.
> > >
> > > Thanks and best regards
> > >
> > > Raja
> > >
> > >
> > >
> >
>
>  
>



-- 
Evan Klein

Reply via email to