stragglers

This commit is contained in:
James Campos 2011-06-14 19:39:10 -07:00
parent 7876632602
commit 48f83502cd
2 changed files with 4 additions and 4 deletions

View File

@ -1732,13 +1732,13 @@
case 'p':
case 'P':
case 'y':
return "' + time." + c + "() + '";
return "' + Time." + c + "() + '";
break;
default:
return s;
}
});
return Time.funk = Function('time', "return '" + code + "'");
return Time.funk = Function('Time', "return '" + code + "'");
},
day: ['Sunday', 'Monday', 'Tuesday', 'Wednesday', 'Thursday', 'Friday', 'Saturday'],
month: ['January', 'February', 'March', 'April', 'May', 'June', 'July', 'August', 'September', 'October', 'November', 'December'],

View File

@ -1383,9 +1383,9 @@ Time =
foo: ->
code = $.config('time').replace /%([A-Za-z])/g, (s, c) ->
switch c
when 'a', 'A', 'b', 'B', 'd', 'H', 'I', 'm', 'M', 'p', 'P', 'y' then "' + time.#{c}() + '"
when 'a', 'A', 'b', 'B', 'd', 'H', 'I', 'm', 'M', 'p', 'P', 'y' then "' + Time.#{c}() + '"
else s
Time.funk = Function 'time', "return '#{code}'"
Time.funk = Function 'Time', "return '#{code}'"
day: [
'Sunday'
'Monday'