Hi

got it solved .

It was a misamatch in Timezone setup,i.e  in jagent.bat setup.

thanks .

Cheers,
Harry

On Sep 16, 1:55 am, pat <[email protected]> wrote:
> What 'timezone' are you in ?
>
> Pat.
>
> On Sep 15, 7:10 am, harry sri <[email protected]> wrote:
>
>
>
> > Hi,
>
> > Hi all,
> > Using jremote to connect to dot net web application.
> > Calling subroutines from Dotnet to get values from jbase.
>
> > am using time() and timedate() functions to get the current time and
> > date for some calculation .
>
> > but the time() returned in dot application is different from the jbase
> > time or the system time .
> > which effects the calculation part.
> > where as the same routine when executed directly in jbase , gives the
> > correct value.
>
> > ----------------
> > example1:
> > ---------------
> > i.e
> > com.jbase.jremote.DefaultJConnectionFactory dcf;
> >     com.jbase.jremote.JConnection con;
>
> > dcf = new DefaultJConnectionFactory();
> >         dcf.Host = server;
> >         dcf.Port = 20001;
> >         con = dcf.getConnection(uname, password);
>
> >         JSubroutineParameters params3 = new JSubroutineParameters();
> >     params3.add(new JDynArray("YTIME"));
>
> > JSubroutineParameters returnParams3 = new JSubroutineParameters();
>
> >      //Call jBC subroutine Call to get the details of COb Progress and
> > Agent List Details etc.
> >     returnParams3 = con.call("CM.SRTINE", params3);
>
> > YREC = returnParams3.get(0);
>
> > i.e the value time value returned to dynamic array is different from
> > actual value to be returned.
>
> > -------------------------------------------------
>
> > some thing like this:
>
> > SUBROUTINE CM.SRTINE(YTIME)
> > .....
> > .....
> > YTIME = TIME()
> > ......
> > RETURN
>
> > ---------------
> > example 2:
> > ---------------
> > and also when using time function in the dotnet directly also , the
> > value returned is not correct.
>
> > like
> > com.jbase.jremote.DefaultJConnectionFactory dcf;
> >     com.jbase.jremote.JConnection con;
>
> > dcf = new DefaultJConnectionFactory();
> >         dcf.Host = server;
> >         dcf.Port = 20001;
> >         con = dcf.getConnection(uname, password);
>
> > int time = con.time();
> > // the value returned is wrong again.
>
> > -----------------------------------------------------------
>
> > i.e
>
> > Values:
>
> > SYSTEM time : 1:41:11
> > jbase time : 18:12:11
> > Dot net app time value: 09:12:11    (i.e returned from the routine)
>
> > i.e there is a difference of about 9 hours from the value returned and
> > expected.
>
> > Wts the solution for this ?
>
> > (version TAFC r10)
>
> > Thanks in advance.
> > harry.psri- Hide quoted text -
>
> - Show quoted text -

-- 
Please read the posting guidelines at: 
http://groups.google.com/group/jBASE/web/Posting%20Guidelines

IMPORTANT: Type T24: at the start of the subject line for questions specific to 
Globus/T24

To post, send email to [email protected]
To unsubscribe, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/jBASE?hl=en

Reply via email to