Permalink
Browse files

Merge branch 'master' of github.com:asterite/rgviz-rails

  • Loading branch information...
2 parents ecb9034 + 4f44053 commit ee2267d58730e8f48b190efc35a1cec65858fd6d asterite committed Mar 19, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 lib/rgviz_rails/executor.rb
@@ -368,7 +368,8 @@ def value.as_json(options = {})
self
end
def value.encode_json(*)
- "new Date(#{strftime('%Y,%d,%m')})"
+ month = strftime("%m").to_i - 1
+ "new Date(#{strftime('%Y,' + month.to_s + ',%d')})"
end
value
when :datetime
@@ -377,7 +378,8 @@ def value.as_json(*)
self
end
def value.encode_json(*)
- "new Date(#{strftime('%Y,%d,%m,%H,%M,%S')})"
+ month = strftime("%m").to_i - 1
+ "new Date(#{strftime('%Y,' + month.to_s + ',%d,%H,%M,%S')})"
end
value
when :timeofday

0 comments on commit ee2267d

Please sign in to comment.