Close #343.
This commit is contained in:
parent
8e09b7b483
commit
991c88fc75
@ -2847,7 +2847,7 @@
|
||||
var day, hour, min, month, year, _, _ref;
|
||||
_ref = node.textContent.match(/(\d+)\/(\d+)\/(\d+)\(\w+\)(\d+):(\d+)/), _ = _ref[0], month = _ref[1], day = _ref[2], year = _ref[3], hour = _ref[4], min = _ref[5];
|
||||
year = "20" + year;
|
||||
month -= 1;
|
||||
month--;
|
||||
hour = chanOffset + Number(hour);
|
||||
return new Date(year, month, day, hour, min);
|
||||
};
|
||||
@ -2861,6 +2861,7 @@
|
||||
time = $.el('time', {
|
||||
textContent: ' ' + Time.funk(Time) + ' '
|
||||
});
|
||||
time.setAttribute('datetime', Time.date.toISOString());
|
||||
return $.replace(node, time);
|
||||
},
|
||||
foo: function() {
|
||||
|
||||
@ -2408,7 +2408,7 @@ Time =
|
||||
[_, month, day, year, hour, min] =
|
||||
node.textContent.match /(\d+)\/(\d+)\/(\d+)\(\w+\)(\d+):(\d+)/
|
||||
year = "20#{year}"
|
||||
month -= 1 #months start at 0
|
||||
month-- # Months start at 0
|
||||
hour = chanOffset + Number hour
|
||||
new Date year, month, day, hour, min
|
||||
|
||||
@ -2420,6 +2420,8 @@ Time =
|
||||
Time.date = Time.parse node
|
||||
time = $.el 'time',
|
||||
textContent: ' ' + Time.funk(Time) + ' '
|
||||
# Set the datetime attribute, ISO'd.
|
||||
time.setAttribute 'datetime', Time.date.toISOString()
|
||||
$.replace node, time
|
||||
foo: ->
|
||||
code = conf['time'].replace /%([A-Za-z])/g, (s, c) ->
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user