chiketto 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e70d8732151cbfb708473112b45278193b18d7d2
4
- data.tar.gz: 25910f52cea0de3bfac5064818cafd218abac5a4
3
+ metadata.gz: 57f5b5eb3b13728ffb85f6a2146f052797e30749
4
+ data.tar.gz: 9be3fabc76bbe6a770845fc0ab68bcc267485f66
5
5
  SHA512:
6
- metadata.gz: e767413f7af517e32d5c905f8a3f4cf09c81e660d2456bf0b81eb30e9f91fc03b85a7dfbaa9061815c4ea2b7923fb6930914a2df088832b1c04fc99e01b7d25f
7
- data.tar.gz: ec32f0b940ae5a99592ee8531a3d0f6b8aef30bf2999d8c4807c3094bb08175253a13028929309176852df9a3183364467a0119d3cf4426009cba8c155e47e6f
6
+ metadata.gz: e29c673598647b3e60d3a70d91b8dc4cbfa8f9ba846acf1f2f86261cd922a40e6689a29e3f73c0448577a997b869cab2d52f3d0fc9e64f0a484ad6f700254159
7
+ data.tar.gz: 71f85706f0d623053197bb3af0a59bc88d76094f890376354b0b85f18b8e593fc41911600f1dd44f0254261bb931a68af4c884fd6c25a0ea09ce34914dcd0bc0
@@ -19,8 +19,12 @@ module Chiketto
19
19
  date = instance_variable_get("@#{value}")
20
20
  return date if date.nil?
21
21
 
22
- date = date['utc'] if date.is_a?(Hash)
23
- DateTime.strptime date, '%FT%TZ'
22
+ if date.is_a?(Hash)
23
+ date = date['local']
24
+ DateTime.strptime date, '%FT%T'
25
+ else
26
+ DateTime.strptime date, '%FT%TZ'
27
+ end
24
28
  end
25
29
  end
26
30
  end
@@ -1,3 +1,3 @@
1
1
  module Chiketto
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chiketto
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Radford
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-10-24 00:00:00.000000000 Z
11
+ date: 2014-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler