facebook_api 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. data/lib/facebook_api.rb +3 -3
  2. metadata +3 -3
data/lib/facebook_api.rb CHANGED
@@ -96,12 +96,12 @@ module FacebookApi
96
96
  Digest::MD5.hexdigest(params_string + secret_key)
97
97
  end
98
98
 
99
- # Helper to convert <tt>ActiveSupport::TimeWithZone</tt> from local time to Pacific time.
99
+ # Helper to convert <tt>ActiveSupport::TimeWithZone</tt> from local time to UTC.
100
100
  # Use this when sending date/times to Facebook as Facebook expects times to be
101
- # sent as Pacific time converted to a Unix timestamp.
101
+ # sent as UTC converted to a Unix timestamp.
102
102
  def self.convert_time(time)
103
103
  if time.is_a?(ActiveSupport::TimeWithZone)
104
- pacific_zone = ActiveSupport::TimeZone["Pacific Time (US & Canada)"]
104
+ pacific_zone = ActiveSupport::TimeZone["UTC"]
105
105
  pacific_zone.parse(time.strftime("%Y-%m-%d %H:%M:%S"))
106
106
  else
107
107
  time
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Tekin Suleyman
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-06-13 00:00:00 +01:00
17
+ date: 2010-06-18 00:00:00 +01:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency