bug-gnustep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug #14863] [[NSCalendarDate date] descriptionWithCalendarFormat:@"%F"]


From: Matthew Jimenez
Subject: [bug #14863] [[NSCalendarDate date] descriptionWithCalendarFormat:@"%F"] always returns @"000"
Date: Tue, 25 Oct 2005 22:13:11 +0000
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.7.10) Gecko/20050716 Firefox/1.0.6

URL:
  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14863>

                 Summary: [[NSCalendarDate date]
descriptionWithCalendarFormat:@"%F"] always returns @"000"
                 Project: GNUstep
            Submitted by: mjimenez
            Submitted on: Tue 10/25/05 at 22:13
                Category: Base/Foundation
                Severity: 3 - Normal
              Item Group: Bug
                  Status: None
                 Privacy: Public
             Assigned to: None
             Open/Closed: Open

    _______________________________________________________

Details:

Hello, 

I noticed that formatting milliseconds appears to have a bug in it (or at
least not work in my environment) which I believe was introduced in revision
1.97 of NSCalendarDate.m

I think the milliseconds are accidentally getting truncated at line 1868 of
the current CVS file (1.110) with the statement:
v = (int)s;

I believe the correct line is
v = (int) (s * 1000);

Can anyone confirm this?







    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?func=detailitem&item_id=14863>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/





reply via email to

[Prev in Thread] Current Thread [Next in Thread]