Itβs running ![]()
I must admit, chatgpt helped me out. Needed to replace:
def parse_timestamp(timestamp)
Time.zone.at(@tz.utc_to_local(timestamp))
end
which is right at the bottom of the importer script
with:
def parse_timestamp(timestamp)
return nil if timestamp.nil? || timestamp.to_i == 0
# Convert integer β Time β Apply timezone β Convert to Rails Time.zone
utc_time = Time.at(timestamp.to_i).utc
local_time = @tz.utc_to_local(utc_time)
Time.zone.at(local_time)
end
β¦itβs chugging through the topics now, but I can see things appearing on the site. I will report back to (hopefully) say itβs a success afterwards. If it is, I might make another topic on here with a guide of what I did to get it all working.