From: Pit Capitain Date: 2009-02-12T06:50:30+09:00 Subject: Re: Array uniq 2009/2/11 Stuart Little : > 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