facebook_api 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/facebook_api.rb +3 -3
- 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
|
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
|
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["
|
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
|
-
-
|
9
|
-
version: 0.1.
|
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-
|
17
|
+
date: 2010-06-18 00:00:00 +01:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|