sxiao3 / jsmpp

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

RelativeTimeFormatter producing absolute format values rather than relative #120

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?

1. Create a RelativeTimeFormatter
2. Attempt to format a Date with the RelativeTimeFormatter

What is the expected output? What do you see instead?

Expect the output to follow the format defined in SMPP v3.4 section 7.1.1.2.

Actual output is an absolute time with an 'R' orientation flag. 

For instance, pass a Date that is 3 hours, 2 minutes, and 1 second in the 
future to the RelativeTimeFormatter. The output value should be:

000000030201000R

which is a relative time from the SMSC of 3 hours, 2 minutes, and 1 second in 
the future.

The value produced by the RelativeTimeFormatter is absolute instead.

What version of the product are you using? On what operating system?

2.1.0, JDK 1.5, Linux

Please provide any additional information below.

Original issue reported on code.google.com by mike.ome...@gmail.com on 6 Dec 2011 at 11:32