sanoopsivan / jsmpp

Automatically exported from code.google.com/p/jsmpp
Apache License 2.0
0 stars 0 forks source link

DeliveryReceipt dates are minute precision #46

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Send a message 
2. examine the date objects returned

What is the expected output? What do you see instead?
Dates should have at least second precision, as deliveries can happen in
les than a minute. All the dates at present are only second precision

What version of the product are you using? On what operating system?
2.0.1 on linux with jdk_1.5.0_20

Please provide any additional information below.
Tested against both the smpp simulator and an actual gateway (clickatell)

Original issue reported on code.google.com by dhorw...@gmail.com on 18 Aug 2009 at 9:04

GoogleCodeExporter commented 8 years ago
Seems I should have read the SMS spec more carefully - it only allows for minute
precision in the delivery reports 

Original comment by dhorw...@gmail.com on 18 Aug 2009 at 9:44

GoogleCodeExporter commented 8 years ago
Yes, you right.
The spec tells the size is 10 character only using format:
YYMMDDhhmm where: 
YY = last two digits of the year (00-99) 
MM = month (01-12) 
DD = day (01-31) 
hh   = hour (00-23) 
mm = minute (00-59 

But tested against actual gateway (clickatell)?  So clickatell didn't follow 
the spec?

Original comment by uuda...@gmail.com on 18 Aug 2009 at 9:52

GoogleCodeExporter commented 8 years ago
No Clickatell follows the spec i just suspected that jspp was parsing off the 
seconds
- I didn't know the spec didn't include them! (our app was reporting negative
delivery times due to this :-)

Original comment by dhorw...@gmail.com on 18 Aug 2009 at 1:20