           # TODO: We need to give "orphaned" lines at the beginning of a file a timestamp if we have any
           if tryTimestamp.isValid() or tryTimestampCustom.isValid()
             timestamp = if tryTimestamp.isValid() then tryTimestamp else tryTimestampCustom
+            if not @lastTimestamp
+                @firstTimestamp = timestamp
             @lastTimestamp = timestamp
             @timestampIndex = 0
           else


        # create the objects for LogLine models
        @lastTimestamp = null
        res = lines.map (data) =>
          # Try builtin ISO 8601 timetamp strings
          tryTimestamp = moment data

          offset += data.length + 1

          line

        for l in res
          if not res.timestamp
            res.timestamp = @firstTimestamp.subtract(1, 'ms')

        res

