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: 19a1b3329508cae93b9159a4f5a799a5cc657305
4
- data.tar.gz: dfcd729f0c7eef50ef11cbbba06252a8e09ce1fa
3
+ metadata.gz: 7dbea6fcdda26efbf1615878235a429154a3ef29
4
+ data.tar.gz: 12130a5497e4e03d32e6a914dbc5f0644283263e
5
5
  SHA512:
6
- metadata.gz: bc389fe4c6c5dd23fe2c840bfd09d8f81865d39ec2547db3ac2f575f398aeecdd8f47011f5ebfe7aaeafa53190c5fc8dac55fd1f8e023927a5f55bfe4b4bf851
7
- data.tar.gz: 8cc002b04ee118f3f66b2902ddcfdfa96e6cc0ef21c0d8910b0d3f4313fe270c4a12b43fc2b10f1c9f85a00e8835272279e84605a4a91792dae12a95f2ff57f6
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.utc.iso8601.slice(0, 19)).to_s(:db))
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.utc.iso8601.slice(0, 19)).to_s(:db))
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
@@ -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 (yet to be implemented), or will be used when content has been detected on a specific feed.'
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."
@@ -1,3 +1,3 @@
1
1
  module ConcertoTemplateScheduling
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: concerto_template_scheduling
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marvin Frederickson