*** BUG *** in PgSqlTimeStamp
Posted: Wed 05 Mar 2014 17:46
Here is some sample code. This datetime format is valid PostgreSql, but unfortunately the Devart PgSqlTimeStamp class throws an error.
System.FormatException: TimeStamp format not recognized
See Code and Exception below. *** This is a blocking issue for us. ***
string dateTimeToParse = "04/19/1988 12:00:00 AM";
try
{
PgSqlTimeStamp.Parse(dateTimeToParse);
}
catch (Exception ex)
{
Debug.WriteLine(ex);
LogToScreen(ex.ToString());
}
System.FormatException: TimeStamp format not recognized.
at Devart.Data.PostgreSql.PgSqlTimeStamp.Parse(String value, String format)
at Devart.Data.PostgreSql.PgSqlTimeStamp.Parse(String value)
at PB8.Peep.WFADatabaseSandBox.MainForm.button2_Click(Object sender, EventArgs e) in c:\Develop\BlueMetal\PB8\Main\PB8.Peep.WFADatabaseSandBox\MainForm.cs:line 194
System.FormatException: TimeStamp format not recognized
See Code and Exception below. *** This is a blocking issue for us. ***
string dateTimeToParse = "04/19/1988 12:00:00 AM";
try
{
PgSqlTimeStamp.Parse(dateTimeToParse);
}
catch (Exception ex)
{
Debug.WriteLine(ex);
LogToScreen(ex.ToString());
}
System.FormatException: TimeStamp format not recognized.
at Devart.Data.PostgreSql.PgSqlTimeStamp.Parse(String value, String format)
at Devart.Data.PostgreSql.PgSqlTimeStamp.Parse(String value)
at PB8.Peep.WFADatabaseSandBox.MainForm.button2_Click(Object sender, EventArgs e) in c:\Develop\BlueMetal\PB8\Main\PB8.Peep.WFADatabaseSandBox\MainForm.cs:line 194