bugDotGNU Portable.NET - Bugs: bug #9904, DateTime.ParseExact fails

 
 

You are not allowed to post comments on this tracker with your current authentication level.

bug #9904: DateTime.ParseExact fails

Submitter:  David Logan <djlogan>
Submitted:  Fri 06 Aug 2004 03:15:50 AM UTC
   
 
Category:  None Severity:  3 - Normal
Item Group:  None Status:  Fixed
Privacy:  Public Assigned to:  None
Open/Closed:  Closed

Tue 17 Aug 2004 06:08:33 AM UTC, comment #2: 

Fixed when patch was checked in 14th Aug 2004.

Gopal.V <t3rmin4t0r>
Group administrator
Fri 06 Aug 2004 03:53:35 AM UTC, comment #1: 

It is actually in DateTimeParser.cs, where Calendar.ToDateTime fails, here:
value = calendar.ToDateTime
        (year, month, day, hour, minute, second,
        fractions / 10000, era);

With values of:
year=0
month=8
day=5
hour=22
minute=58
second=33
fractions=0
era=0

So I now have to figure out if the M$ version of Calendar.ToDateTime likes these parameters, and continue accordingly.

David Logan <djlogan>
Fri 06 Aug 2004 03:15:50 AM UTC, original submission:  

It does not property parse a date using the following code. It runs on M$, and should run on dotnet:

namespace test
{
  class testclass
  {
    public static void Main(String[] args)
    {
      String s="Aug 05 22:58:33";
      DateTime dt = DateTime.ParseExact(s,
                    "MMM dd HH:mm:ss",
                    CultureInfo.InvariantCulture);
    }
  }
}

David Logan <djlogan>

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

CC list is empty

 

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

 

Follow 2 latest changes.

Date Changed by Updated Field Previous Value => Replaced by
2004-08-17 t3rmin4t0r StatusNone Fixed
    Open/ClosedOpen Closed

Back to the top

Powered by Savane 3.13-4b48.
Corresponding source code