Projects tigase _server server-core Issues #251
Offline Messages Time Bug (#251)
Closed
Maciej Bursztynowski opened 1 decade ago

Hi,

According to https://projects.tigase.org/boards/15/topics/441 I was asked to send here my system configuration.

First of all e're using our own NTP server,

@# date

śro paź 16 09:45:53 CEST 2013@

Server:

Centos 5.x system (2.6.18-274.12.1.el5.centos.plus #1 SMP Tue Nov 29 18:16:23 EST 2011 i686 i686 i386 GNU/Linux)

Tigase Server v. 5.1.5 installed from console java installer with mysql.

Java used is: java-1.7.0-openjdk-1.7.0.25

My init.properties file:

@config-type = --gen-config-all

#wylaczenie niepotrzebnych komponentow

message-router/components/msg-receivers/s2s.active[B]=false

message-router/components/msg-receivers/bosh.active[B]=false

  1. opcje debug

--debug = server

basic-conf/logging/java.util.logging.FileHandler.limit=104857600

basic-conf/logging/java.util.logging.FileHandler.counta=3

#StanzaSender

ssend/file/init-string = /opt/tigase/stanza/*.stanza

ssend/file/active[B]=true

ssend/jdbc/active[B]=true

ssend/jdbc/init-string = jdbc:mysql://server/xmpp?user=db-user&password=db-pass&table=xmpp_stanza

--cluster-mode = false

  1. administratorzy

--admins = 1@server.com,2@server.com

  1. JDBC connection

--user-db = mysql

--user-db-uri = jdbc:mysql://server/xmpp?user=db-user&password=db-pass

  1. certyfikaty SSL

--ssl-certs-location = /opt/tigase/certs

--vhost-tls-required = true

--ssl-def-cert-domain = server.com

#domeny

--virt-hosts = server.com

--vhost-anonymous-enabled = false

--domain-filter-policy = OWN

--comp-class-1 = tigase.muc.MUCComponent

--comp-name-1 = muc

--sm-plugins = -jabber:iq:register,-jabber:iq:privacy,-message,+msgoffline,+domain-filter

@

Clients are working on Windows 7 Professional (using same NTP server as linux server).

We are using PSI+ XMPP Client.

What is the problem?

User1 is online and User2 is offline, User1 writes to User2 and send a chat message (for example sent 12:00:00 local(on windows7) time))

I'm checking out database entry (msg_history table in MySQL) and I can see the Entry, where ts is YYYY-mm-dd 12:00:00.

So sendtime=ts and it's ok, but when User1 comes online(12:01:00 local time(on windows7)) message is delivered to PSI+ and message time is 14:00:00.

Then User1 and User2 are chatting and time is correct.

wojciech.kapcia@tigase.net commented 1 decade ago

changed code to use UTC formatting explicitly for offline messages per xep-0203; changes applied in both master and fixes-for-5.1 branch.

issue 1 of 1
Type
Bug
Priority
Normal
Assignee
RedmineID
1592
Version
tigase-server-5.1.5
Spent time
46h 30m
Issue Votes (0)
Watchers (0)
Reference
tigase/_server/server-core#251
Please wait...
Page is in error, reload to recover