Browse code

FIX: nespravne logicke spojky

Cinan Rakosnik authored on 26/05/2013 at 20:26:03
Showing 1 changed files
... ...
@@ -21,11 +21,11 @@ class Xmpp.Views.Chat.MessageView extends Backbone.View
21 21
 
22 22
   formatTime:  ->
23 23
     nowDate = new Date()
24
-    if (nowDate.getDate() != @dateSent.getDate() &&
25
-        nowDate.getMonth() != @dateSent.getMonth() &&
24
+    if (nowDate.getDate() != @dateSent.getDate() ||
25
+        nowDate.getMonth() != @dateSent.getMonth() ||
26 26
         nowDate.getFullYear() != @dateSent.getFullYear())
27 27
       return @dateSent.getFullYear() + '/' + @_padDate((@dateSent.getMonth()+1)) + '/' + @_padDate(@dateSent.getDate()) +
28
-        ' @ ' + @_padDate(@dateSent.getHours()) + ':' + @_padDate(@dateSent.getMinutes())
28
+        ' ' + @_padDate(@dateSent.getHours()) + ':' + @_padDate(@dateSent.getMinutes())
29 29
 
30 30
     return @_padDate(@dateSent.getHours()) + ':' + @_padDate(@dateSent.getMinutes())
31 31