public
Description: Click-draggable. Range-makeable. A better calendar.
Homepage: http://stephencelis.com/projects/timeframe
Clone URL: git://github.com/stephencelis/timeframe.git
Click here to lend your support to: timeframe and make a donation at www.pledgie.com !
Datejs compatibility. Localizations.
stephencelis (author)
Tue May 06 05:41:03 -0700 2008
commit  f431d309139d62d7800f9116e18a458e5d2c0442
tree    4b3da96f3377ec82a4bfafc1d9e2e892517cf4ed
parent  2767e6ae0c0e2d3a17bd971d369cf3b6c12cb7b1
...
383
384
385
386
 
387
388
 
 
 
389
390
391
...
383
384
385
 
386
387
 
388
389
390
391
392
393
0
@@ -383,9 +383,11 @@ var Timeframe = Class.create({
0
   }
0
 });
0
 
0
-Object.extend(Date, {
0
+Object.extend(Date, {
0
   parseToObject: function(string) {
0
- var date = new Date(Date.parse(string));
0
+ var date = Date.parse(string);
0
+ if(!date) return null;
0
+ date = new Date(date);
0
     return (date == 'Invalid Date' || date == 'NaN') ? null : date.neutral();
0
   }
0
 });
...
 
1
2
3
...
17
18
19
 
 
 
 
 
 
 
 
 
 
 
 
20
21
22
...
1
2
3
4
...
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
0
@@ -1,3 +1,4 @@
0
+// TODO: use Date.js for localizations
0
 var Localizations = $H({
0
   ES: $H({
0
     format: '%d %b %Y',
0
@@ -17,6 +18,18 @@ var Localizations = $H({
0
     weekdays: $w('domenica lunedì martedì mercoledì giovedì venerdì sabato'),
0
     weekOffset: 1
0
   }),
0
+ NL: $H({
0
+ format: '%d %b %Y',
0
+ months: $w('januari februari maart april mei juni juli augustus september oktober november december'),
0
+ weekdays: $w('zondag maandag dinsdag woensdag donderdag vrijdag zaterdag'),
0
+ weekOffset: 1
0
+ }),
0
+ PT: $H({
0
+ format: '%d %b %Y',
0
+ months: $w('janeiro fevereiro março abril maio junho julho agosto setembro outubro novembro dezembro'),
0
+ weekdays: $w('domingo segunda terça quarta quinta sexta sábado'),
0
+ weekOffset: 1
0
+ }),
0
   UK: $H({
0
     format: '%d %b %Y',
0
     months: $w('January February March April May June July August September October November December'),

Comments

    No one has commented yet.