Pit Capitain
2/11/2009 9:51:00 PM
2009/2/11 Stuart Little <stuart_clarke1986@hotmail.co.uk>:
> time = event.time_written.to_s
> dateCheck = [time.gsub(/\s/, '')[0..7] + time[26..29]]
> printdata = [dateCheck]
> @alerts.push printdata.uniq
Stuart, in this code you have an array with exactly one element, so
#uniq returns the original array. Can you add the line "p printdata"
and show us the output?
Regards,
Pit