dotgnu-pnet-commits
[Top][All Lists]
Advanced

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

[Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/DateTimeFormat


From: Gopal.V <address@hidden>
Subject: [Dotgnu-pnet-commits] CVS: pnetlib/runtime/System/Private/DateTimeFormat DateTimeFormatter.cs,1.1,1.2
Date: Fri, 07 Feb 2003 06:12:54 -0500

Update of /cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/DateTimeFormat
In directory subversions:/tmp/cvs-serv4035/runtime/System/Private/DateTimeFormat

Modified Files:
        DateTimeFormatter.cs 
Log Message:
Patch #1080 from Michael Moore with my changes 


Index: DateTimeFormatter.cs
===================================================================
RCS file: 
/cvsroot/dotgnu-pnet/pnetlib/runtime/System/Private/DateTimeFormat/DateTimeFormatter.cs,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** DateTimeFormatter.cs        2 Feb 2003 16:37:02 -0000       1.1
--- DateTimeFormatter.cs        7 Feb 2003 11:12:50 -0000       1.2
***************
*** 35,39 ****
--- 35,45 ----
                {
                        if(format.Length==1) 
+                       {
                                format=StandardFormatSpecifier(format);
+                               if(format==null)
+                               {
+                                       throw new 
FormatException(_("Format_StringException"));
+                               }
+                       }
                        
                        StringBuilder builder=new StringBuilder(format.Length);
***************
*** 284,293 ****
                                        return "yyyy MMMM";
                                }
-                               default:
-                               {
-                                       return format;
-                               }
                        }
!                       return format;
                }
        }
--- 290,295 ----
                                        return "yyyy MMMM";
                                }
                        }
!                       return null;
                }
        }





reply via email to

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