creation_report 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module CreationReport
2
- VERSION = "0.0.6"
2
+ VERSION = "0.0.7"
3
3
  end
@@ -22,7 +22,7 @@ module CreationReport
22
22
  def created_by_hour
23
23
  DataSet::HourlyDataSet.new(
24
24
  count(
25
- :group => "DATE_FORMAT(#{table_name}.created_at,'%Y-%m-%d %H')",
25
+ :group => "DATE_FORMAT( CONVERT_TZ(#{table_name}.created_at, '+0:00', '#{(Time.zone.utc_offset/3600 rescue '-0')}:00'),'%Y-%m-%d %H')",
26
26
  :order => "#{table_name}.id ASC",
27
27
  :conditions => ["#{table_name}.created_at > ?", 24.hours.ago]
28
28
  ), 24
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: creation_report
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 6
10
- version: 0.0.6
9
+ - 7
10
+ version: 0.0.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - Jon Collier
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-26 00:00:00 Z
18
+ date: 2012-05-29 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: rails
@@ -125,7 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  requirements: []
126
126
 
127
127
  rubyforge_project:
128
- rubygems_version: 1.8.17
128
+ rubygems_version: 1.8.24
129
129
  signing_key:
130
130
  specification_version: 3
131
131
  summary: Easily generate graphs for ActiveRecord object creation.