fmsystem-commits
[Top][All Lists]
Advanced

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

[Fmsystem-commits] [14535]


From: Saul
Subject: [Fmsystem-commits] [14535]
Date: Mon, 07 Dec 2015 17:12:11 +0000

Revision: 14535
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=14535
Author:   psaul
Date:     2015-12-07 17:12:10 +0000 (Mon, 07 Dec 2015)
Log Message:
-----------


Modified Paths:
--------------
    branches/dev-syncromind/booking/js/booking/common.js

Modified: branches/dev-syncromind/booking/js/booking/common.js
===================================================================
--- branches/dev-syncromind/booking/js/booking/common.js        2015-12-07 
15:38:23 UTC (rev 14534)
+++ branches/dev-syncromind/booking/js/booking/common.js        2015-12-07 
17:12:10 UTC (rev 14535)
@@ -813,4 +813,17 @@
             });
         }
     });
-}
\ No newline at end of file
+}
+
+
+parseISO8601 = function (string) {
+       var regexp = "(([0-9]{4})(-([0-9]{1,2})(-([0-9]{1,2}))))?( 
)?(([0-9]{1,2}):([0-9]{1,2}))?";
+       var d = string.match(new RegExp(regexp));
+       var year = d[2] ? (d[2] * 1) : 0;
+       date = new Date(year, (d[4]||1)-1, d[6]||0);
+       if(d[9])
+               date.setHours(d[9]);
+       if(d[10])
+               date.setMinutes(d[10]);
+       return date;
+};
\ No newline at end of file




reply via email to

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