web/data/cubicweb.timeline-ext.js
changeset 1156 4b920f836567
parent 67 60a291fe7965
child 5658 7b9553a9db65
child 5767 1d811df051c2
equal deleted inserted replaced
1155:61149b53d441 1156:4b920f836567
     7 
     7 
     8 
     8 
     9 /* provide our own custom date parser since the default
     9 /* provide our own custom date parser since the default
    10  * one only understands iso8601 and gregorian dates
    10  * one only understands iso8601 and gregorian dates
    11  */
    11  */
    12 Timeline.NativeDateUnit.getParser = function(format) {
    12 SimileAjax.NativeDateUnit.getParser = Timeline.NativeDateUnit.getParser = function(format) {
    13     if (typeof format == "string") {
    13     if (typeof format == "string") {
    14 	if (format.indexOf('%') != -1) {
    14 	if (format.indexOf('%') != -1) {
    15 	    return function(datestring) {
    15 	    return function(datestring) {
    16 		if (datestring) {
    16 		if (datestring) {
    17 		    return strptime(datestring, format);
    17 		    return strptime(datestring, format);