lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb in adiwg-mdtranslator-2.18.0rc2 vs lib/adiwg/mdtranslator/writers/fgdc/classes/class_process.rb in adiwg-mdtranslator-2.18.0rc3
- old
+ new
@@ -55,9 +55,10 @@
haveProcTime = false
unless hStep[:timePeriod].empty?
hTimePeriod = hStep[:timePeriod]
unless hTimePeriod.empty?
hEndDT = hTimePeriod[:endDateTime]
+ hEndDT = hTimePeriod[:startDateTime] if hEndDT.nil? || hEndDT.empty?
unless hEndDT.empty?
procDate = AdiwgDateTimeFun.stringDateFromDateTime(hEndDT[:dateTime], hEndDT[:dateResolution])
procTime = AdiwgDateTimeFun.stringTimeFromDateTime(hEndDT[:dateTime], hEndDT[:dateResolution])
procDate.gsub!(/[-]/,'')
unless procDate == 'ERROR'