[chronojump] print on UtilDate.FromSql to help fix sql date locale errors



commit f7c649b0d8aa15cca6056a67fff7a0ccd30bb786
Author: Xavier de Blas <xaviblas gmail com>
Date:   Fri Jul 28 15:03:25 2017 +0200

    print on UtilDate.FromSql to help fix sql date locale errors

 src/utilDate.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/utilDate.cs b/src/utilDate.cs
index 939156f..ca4caa6 100644
--- a/src/utilDate.cs
+++ b/src/utilDate.cs
@@ -52,12 +52,13 @@ public class UtilDate
        //return datetime
        public static DateTime FromSql (string date)
        {
+               LogB.Information("UtilDate.FromSql date: " + date);
                /*
                   on report we do a session select with uniqueID = -1
                   it returns nothing, date has nothing
                   */
                if(date == null || date == "")
-                       return DateTime.Now;
+                       return DateTime.Now; //TODO: ensure this now is year-month-day
 
                /*
                   maybe date format is before 0.72 (d/m/Y)


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