Date.add() bug

87 views
Skip to first unread message

Robert

unread,
Sep 28, 2010, 12:54:25 AM9/28/10
to Datejs - A JavaScript Date Library
This is an awesome library !

Just noticed this (transcript from debugger follows)

>a
Tue Sep 28 2010 15:00:00 GMT-0700 (PDT)

>a.add( {minute:120})
Tue Sep 28 2010 15:00:00 GMT-0700 (PDT)

>a.add(120).minutes()
Tue Sep 28 2010 17:00:00 GMT-0700 (PDT)


The first version of add() is not working correctly in the version of
the code lifted from http://www.datejs.com/ which is
* @version: 1.0 Alpha-1
* @author: Coolite Inc. http://www.coolite.com/
* @date: 2008-05-13

Chris Pratt

unread,
Sep 30, 2010, 2:51:41 PM9/30/10
to dat...@googlegroups.com
you might try:

a.add( {minutes:120})

(*Chris*)


--
You received this message because you are subscribed to the Google Groups "Datejs - A JavaScript Date Library" group.
To post to this group, send email to dat...@googlegroups.com.
To unsubscribe from this group, send email to datejs+un...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/datejs?hl=en.


Robert

unread,
Sep 30, 2010, 5:08:27 PM9/30/10
to Datejs - A JavaScript Date Library
Durhhh.... pilot error !
Thanks Chris !

On Sep 30, 11:51 am, Chris Pratt <thechrispr...@gmail.com> wrote:
> you might try:
>
> a.add( {minutes:120})
>
> (*Chris*)
>
>
>
> On Mon, Sep 27, 2010 at 9:54 PM, Robert <135...@gmail.com> wrote:
> > This is an awesome library !
>
> > Just noticed this (transcript from debugger follows)
>
> > >a
> > Tue Sep 28 2010 15:00:00 GMT-0700 (PDT)
>
> > >a.add( {minute:120})
> > Tue Sep 28 2010 15:00:00 GMT-0700 (PDT)
>
> > >a.add(120).minutes()
> > Tue Sep 28 2010 17:00:00 GMT-0700 (PDT)
>
> > The first version of add() is not working correctly in the version of
> > the code lifted fromhttp://www.datejs.com/which is
> >  * @version: 1.0 Alpha-1
> >  * @author: Coolite Inc.http://www.coolite.com/
> >  * @date: 2008-05-13
>
> > --
> > You received this message because you are subscribed to the Google Groups
> > "Datejs - A JavaScript Date Library" group.
> > To post to this group, send email to dat...@googlegroups.com.
> > To unsubscribe from this group, send email to
> > datejs+un...@googlegroups.com<datejs%2Bunsu...@googlegroups.com>
> > .
Reply all
Reply to author
Forward
0 new messages