Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » EGL Development Tools » Error in function addDays? (only javascript)
Error in function addDays? (only javascript) [message #882858] Thu, 07 June 2012 10:34 Go to next message
Gianluca Donati is currently offline Gianluca DonatiFriend
Messages: 10
Registered: May 2012
Junior Member
I have a library with this simple operation:

ts timeStamp=a_value;
dv date=ts.dateOf();
dv=dv.addDays(15);

If ts=2012-09-01T00:00:00.000 then, when call from a RuiHandler, the result is dv=15/09/2012. When called from a program, the result is dv=16/09/2012 (better!).
If ts=2012-09-01T01:00:00.000 then the result is correct in RuiHandler too, but if ts=2012-09-01T00:59:59.000 or lesser then the result is not correct in RuiHandler.
When called from a program it is always ok.
EDT 0.8.0. Am I missing something?

Regards

[Updated on: Thu, 07 June 2012 11:28]

Report message to a moderator

Re: Error in function addDays? (only javascript) [message #882932 is a reply to message #882858] Thu, 07 June 2012 13:42 Go to previous message
Justin Spadea is currently offline Justin SpadeaFriend
Messages: 66
Registered: July 2009
Member
Hi Gianluca,

This looks like a bug. You can open a bug report at https://bugs.eclipse.org/bugs/enter_bug.cgi?product=EDT (specify the "JavascriptGen" component).

-Justin
Previous Topic:javascriptDev
Next Topic:Enyone can help me
Goto Forum:
  


Current Time: Sat Apr 20 04:58:36 GMT 2024

Powered by FUDForum. Page generated in 0.03187 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top