[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Pnet-developers] [bugs #9904] DateTime.ParseExact fails
From: |
Gopal.V |
Subject: |
[Pnet-developers] [bugs #9904] DateTime.ParseExact fails |
User-agent: |
Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.6) Gecko/20040206 Firefox/0.8 |
This mail is an automated notification from the bugs tracker
of the project: DotGNU Portable.NET.
/**************************************************************************/
[bugs #9904] Latest Modifications:
Changes by:
Gopal.V <address@hidden>
'Date:
Tue 08/17/2004 at 06:08 (Asia/Calcutta)
What | Removed | Added
---------------------------------------------------------------------------
Resolution | None | Fixed
Status | Open | Closed
------------------ Additional Follow-up Comments ----------------------------
Fixed when patch was checked in 14th Aug 2004.
/**************************************************************************/
[bugs #9904] Full Item Snapshot:
URL: <http://savannah.gnu.org/bugs/?func=detailitem&item_id=9904>
Project: DotGNU Portable.NET
Submitted by: David Logan
On: Fri 08/06/2004 at 03:15
Category: None
Severity: 5 - Average
Item Group: None
Resolution: Fixed
Assigned to: None
Status: Closed
Summary: DateTime.ParseExact fails
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);
}
}
}
Follow-up Comments
------------------
-------------------------------------------------------
Date: Tue 08/17/2004 at 06:08 By: t3rmin4t0r
Fixed when patch was checked in 14th Aug 2004.
-------------------------------------------------------
Date: Fri 08/06/2004 at 03:53 By: djlogan
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.
For detailed info, follow this link:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=9904>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/