|
@@ -117,17 +117,17 @@ class Activity < ApplicationRecord
|
117
|
117
|
|
118
|
118
|
sd = Date.strptime(row['start_date'])
|
119
|
119
|
st = Time.strptime(row['start_time'], '%H:%M')
|
120
|
|
- a.start = DateTime.new(sd.year, sd.month, sd.day, st.hour, st.min)
|
|
120
|
+ a.start = Time.zone.local(sd.year, sd.month, sd.day, st.hour, st.min)
|
121
|
121
|
|
122
|
122
|
if not row['end_date'].blank?
|
123
|
123
|
ed = Date.strptime(row['end_date'])
|
124
|
124
|
et = Time.strptime(row['end_time'], '%H:%M')
|
125
|
|
- a.end = DateTime.new(ed.year, ed.month, ed.day, et.hour, et.min)
|
|
125
|
+ a.end = Time.zone.local(ed.year, ed.month, ed.day, et.hour, et.min)
|
126
|
126
|
end
|
127
|
127
|
|
128
|
128
|
dd = Date.strptime(row['deadline_date'])
|
129
|
129
|
dt = Time.strptime(row['deadline_time'], '%H:%M')
|
130
|
|
- a.deadline = DateTime.new(dd.year, dd.month, dd.day, dt.hour, dt.min)
|
|
130
|
+ a.deadline = Time.zone.local(dd.year, dd.month, dd.day, dt.hour, dt.min)
|
131
|
131
|
|
132
|
132
|
result << a
|
133
|
133
|
end
|