[GH-ISSUE #179] sent_timestamp is not unix time format compliant #134

Closed
opened 2026-02-28 01:23:21 +03:00 by kerem · 7 comments
Owner

Originally created by @redbullpeter on GitHub (Jun 22, 2014).
Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/179

The sent_timestamp that is being sent is not in the correct unix time format.

For example the time returned today was: 1403438526000
If you convert this strictly, assuming 64 bit time stamp, then the date would be: 13/03/46443 11:00:00 GMT

The time stamp should actually be: 1403438526
Which converts to: 22/06/2014 12:02:06 GMT

Millisecond accuracy should be represented as 1403438526.000

Originally created by @redbullpeter on GitHub (Jun 22, 2014). Original GitHub issue: https://github.com/ushahidi/SMSSync/issues/179 The sent_timestamp that is being sent is not in the correct unix time format. For example the time returned today was: 1403438526000 If you convert this strictly, assuming 64 bit time stamp, then the date would be: 13/03/46443 11:00:00 GMT The time stamp should actually be: 1403438526 Which converts to: 22/06/2014 12:02:06 GMT Millisecond accuracy should be represented as 1403438526.000
kerem closed this issue 2026-02-28 01:23:21 +03:00
Author
Owner

@kkanigowski commented on GitHub (Jul 7, 2014):

@eyedol, Is this timestamp still a problem ? If it is necessary, I will convert it to unix timestamp.

<!-- gh-comment-id:48167936 --> @kkanigowski commented on GitHub (Jul 7, 2014): @eyedol, Is this timestamp still a problem ? If it is necessary, I will convert it to unix timestamp.
Author
Owner

@mandric commented on GitHub (Jul 7, 2014):

How hard is it to do timestamp/1000 if you want a unix timestamp (seconds from epoch) with a decimal for ms? I see no reason to change this, it would require all servers to update their code, if anything just change the documentation to state the timestamp is milliseconds from epoch.

<!-- gh-comment-id:48208218 --> @mandric commented on GitHub (Jul 7, 2014): How hard is it to do timestamp/1000 if you want a unix timestamp (seconds from epoch) with a decimal for ms? I see no reason to change this, it would require all servers to update their code, if anything just change the documentation to state the timestamp is milliseconds from epoch.
Author
Owner

@KamilKalfas commented on GitHub (Jul 9, 2014):

@eyedol I think that both of us agrees with Milan. There is no need to make such change on client side. In this case it's not a valid issue.

<!-- gh-comment-id:48457325 --> @KamilKalfas commented on GitHub (Jul 9, 2014): @eyedol I think that both of us agrees with Milan. There is no need to make such change on client side. In this case it's not a valid issue.
Author
Owner

@eyedol commented on GitHub (Jul 12, 2014):

@KamilKalfas I agree. We don't even have control over that value

<!-- gh-comment-id:48804805 --> @eyedol commented on GitHub (Jul 12, 2014): @KamilKalfas I agree. We don't even have control over that value
Author
Owner

@mandric commented on GitHub (Jul 12, 2014):

In the future if the timestamp from Android API changes we might introduce a function so we can maintain the ms from epoch format as a standard value. @redbullpeter I think we can close this issue ?

<!-- gh-comment-id:48814548 --> @mandric commented on GitHub (Jul 12, 2014): In the future if the timestamp from Android API changes we might introduce a function so we can maintain the ms from epoch format as a standard value. @redbullpeter I think we can close this issue ?
Author
Owner

@sorinpohontu commented on GitHub (Apr 21, 2015):

@eyedol I think you can close this issue for 2.8.0.

<!-- gh-comment-id:94655646 --> @sorinpohontu commented on GitHub (Apr 21, 2015): @eyedol I think you can close this issue for 2.8.0.
Author
Owner

@emerick-pro commented on GitHub (Mar 18, 2018):

Hello !
I am sorry to raise the issue when this was closed. I am having the issue of the timestamp from Android SMSSync that is always the same value (2147483647). I am building the application using PHP

 $sent_timestamp = (int) $_POST['sent_timestamp'];
 $event['event'] .='Bwarungitswe saa  : '.$sent_timestamp/1000;

And every time I am receiving the same value. 2147483647. Can you please help to figure out the cause or the solution?

<!-- gh-comment-id:374022830 --> @emerick-pro commented on GitHub (Mar 18, 2018): Hello ! I am sorry to raise the issue when this was closed. I am having the issue of the timestamp from Android SMSSync that is always the same value (2147483647). I am building the application using PHP ``` $sent_timestamp = (int) $_POST['sent_timestamp']; $event['event'] .='Bwarungitswe saa : '.$sent_timestamp/1000; ``` And every time I am receiving the same value. 2147483647. Can you please help to figure out the cause or the solution?
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/SMSSync#134
No description provided.