Skip to content

Commit

Permalink
Merge pull request #1291 from AdriennePind/test_dates
Browse files Browse the repository at this point in the history
Test date blocks.
  • Loading branch information
AdriennePind authored and AdriennePind committed Nov 30, 2015
2 parents 24f554b + 554bdf7 commit c34394b
Show file tree
Hide file tree
Showing 3 changed files with 207 additions and 68 deletions.
2 changes: 1 addition & 1 deletion js/runtime.js
Expand Up @@ -1434,7 +1434,7 @@
return date.getDate();
},
getMonth: function(date){
return date.getMonth();
return date.getMonth()+1;
},
getMonthName: function(date){
return ['January', 'February', 'March', 'April', 'May', 'June',
Expand Down
2 changes: 1 addition & 1 deletion playground.html
Expand Up @@ -356,7 +356,7 @@ <h1>Waterbear Playground</h1>
<p>Dates are used to represent a date and to do basic calculations.</p>
<wb-expression type="date" ns="date" fn="now">today</wb-expression>
<wb-expression type="date" ns="date" fn="create">
<wb-value type="number">yyyy</wb-value>
<wb-value type="number" min="0">yyyy</wb-value>
<wb-value type="number">mm</wb-value>
<wb-value type="number">dd</wb-value>
</wb-expression>
Expand Down

0 comments on commit c34394b

Please sign in to comment.