concerto_template_scheduling 0.0.1 → 0.0.2
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7dbea6fcdda26efbf1615878235a429154a3ef29
|
4
|
+
data.tar.gz: 12130a5497e4e03d32e6a914dbc5f0644283263e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 024db2bf0d6fa0de6c8b828f63dc27adb5b64cec3e499f8c706acbcc366376034da188d7bba4fb5e5a50260ba1164397a7cbbb5f4917ad3fd59391fc747067ce
|
7
|
+
data.tar.gz: 31740b8f0cc9732b7b70d1d37246a7aa0e0c400410dfe9ce82252402065ae66ade1afc437057d15ec9f92bdf9afed45267eb8ed3de8539cce24fd7223c56a34c
|
@@ -104,10 +104,9 @@ module ConcertoTemplateScheduling
|
|
104
104
|
# times between 1.9.x and 1.8.x.
|
105
105
|
def start_time=(_start_time)
|
106
106
|
if _start_time.kind_of?(Hash)
|
107
|
-
#write_attribute(:start_time, Time.parse("#{_start_time[:date]} #{_start_time[:time]}").to_s(:db))
|
108
107
|
# convert to time, strip off the timezone offset so it reflects local time
|
109
108
|
t = DateTime.strptime("#{_start_time[:date]} #{_start_time[:time]}", "%m/%d/%Y %l:%M %p")
|
110
|
-
write_attribute(:start_time, Time.zone.parse(t.
|
109
|
+
write_attribute(:start_time, Time.zone.parse(Time.iso8601(t.to_s).to_s(:db)).to_s(:db))
|
111
110
|
else
|
112
111
|
write_attribute(:start_time, _start_time)
|
113
112
|
end
|
@@ -118,7 +117,7 @@ module ConcertoTemplateScheduling
|
|
118
117
|
if _end_time.kind_of?(Hash)
|
119
118
|
# convert to time, strip off the timezone offset so it reflects local time
|
120
119
|
t = DateTime.strptime("#{_end_time[:date]} #{_end_time[:time]}", "%m/%d/%Y %l:%M %p")
|
121
|
-
write_attribute(:end_time, Time.zone.parse(t.
|
120
|
+
write_attribute(:end_time, Time.zone.parse(Time.iso8601(t.to_s).to_s(:db)).to_s(:db))
|
122
121
|
else
|
123
122
|
write_attribute(:end_time, _end_time)
|
124
123
|
end
|
data/config/locales/en.yml
CHANGED
@@ -31,7 +31,7 @@ en:
|
|
31
31
|
edit:
|
32
32
|
header: 'Edit Template Schedule for %{screen}'
|
33
33
|
form:
|
34
|
-
display_when_tip: 'You can specify that the template will never be used (effectively turning it "off"), will be used every day, will be used on the dates specified by the scheduling criteria
|
34
|
+
display_when_tip: 'You can specify that the template will never be used (effectively turning it "off"), will be used every day, will be used on the dates specified by the scheduling criteria, or will be used when content has been detected on a specific feed.'
|
35
35
|
provide_details: 'Provide Details'
|
36
36
|
set_specific_times: 'Set specific times'
|
37
37
|
times_tip: "This is the window during each qualified day that the template will be shown."
|