Fixed search bug, and time formatting