Dlr's are always expressed in UTC.

 

From: [email protected] [mailto:[email protected]] On Behalf
Of Andreas Bergman
Sent: Saturday, 28 May, 2011 22:29
To: [email protected]
Subject: Wrong timezone BB and Smsbox

 

Hi, 

I just noticed something strange,

This is a snippet from the accesslog

:?smpp?dlr_err=000&] [from:abergman] [to:46708768300] [flags:-1:-1:-1:-1:1]
[msg:115:id:6866161306613694689 sub:001 dlvrd:001 submit date:1105282214
done date:1105282214 stat:DELIVRD err:000 Text:test] [udh:0:]

As you can see the time is noted to 22:14, same thing in the PDU from SMSC.

But when smsbox is parsing the DLR, it looks like this:

id=308&dlrDate=2011-05-28+20:14:55&status=1&reply=id%3A68661613
06613694689+sub%3A001+dlvrd%3A001+submit+date%3A1105282214+done+date%3A11052
82214+stat%3ADELIVRD+err%3A000+Text
%3Atest

The dlrDate is 20:14 (%t) but the reply from the SMSC still says 22:14.
Which means that the dlrDate is formated as GMT (Sweden is GMT+2). Kannel is
compiled with --enable-localtime and the machine runs on CEST (GMT+2).

Any ideas on whats wrong here?

/Andreas

-- 
Andreas Bergman
www.abergman.se
0708-768300
[email protected]

Attachment: smime.p7s
Description: S/MIME cryptographic signature

Reply via email to