time_jawn 1.2.0 → 1.2.1
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.
- checksums.yaml +8 -8
- data/lib/time_jawn/time_jawn.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGI5Yzg3MTkzOWQ3NjE3YjliYzg1NWY5ODY0NDNjNDMxOWU2OTJhZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YmUxNDQ0NGE0MzZlN2RhMzU3NjJhZTMxM2MxNDExNzhiZDc2OWNkNA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NWY2MjhkMTc0N2Y4ODFkMDY5YTMyYTRiYTViYjE3YmViMWQ4YmQyYTdhZTg3
|
10
|
+
ZmU3OTA4ZTNjNjk4ZGM4MTVmZmZjOGM0MDBiMmFhZTU1NWUwYzU1MDBkMjFk
|
11
|
+
MDM3NzhiYTJiOTg0OWU2MTAyMTBiNDgyNWNkYTc2YmY2Y2JhYjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZTc3OWUxOGQzZDQ0ODAzMjgyMWE5MTM3NzYwZTk3YzU4Zjc3ZGYyYjBkNmUy
|
14
|
+
MjJmOTYyZWQwOGI4ODk4ODkzN2YxZGM2YzRjMjgwYzhmODk3YTZkMTkzNmVh
|
15
|
+
NTZiNjg1NjM1ZTIyMWQ5ZjdiMjc2N2I4YTc5OWYwMTM5MGYwNmM=
|
data/lib/time_jawn/time_jawn.rb
CHANGED
@@ -82,7 +82,7 @@ module TimeJawn
|
|
82
82
|
def _add_zone(time_string)
|
83
83
|
ActiveSupport::Deprecation.warn "_add_zone will be made private in a future version."
|
84
84
|
Time.zone = self.send(self.class.time_zone_attribute_name)
|
85
|
-
Time.zone.parse(time_string)
|
85
|
+
Time.zone.parse(Time.parse(time_string).strftime('%a, %d %b %Y %H:%M:%S'))
|
86
86
|
end
|
87
87
|
|
88
88
|
# Returns a string representation of a time object suitable for consumption by add_zone.
|