Introducing XDA:DevCon – A Conference For Developers By Developers
XDA Developers Android and Mobile Development Forum
Forgot your password?
 
Post Reply+
Tip us?
 
flixxx
Old
#1  
Member - OP
Thanks Meter 0
Posts: 34
Join Date: Nov 2007
Default Incorrect Timestamp for SMS.

Hello,

I currently have the G1 phone unlocked and using Fido (Canadian carrier) as my carrier.

The problem I am having is with the Timestamp for SMS messages only.

When I receive a message, the time shows it as 4 hours behind.

What seems to be going on is that T-mobile probably sends all the messages GMT time from their network and has the phone adjust the timezone according to your location and Timezone.

Fido on the other hand does all the timezone adjustments from the network side, so when my phone receives it, it process's it again another -4 hours (Please note that is my current timezone).

Can someone look into the OS for SMS and see if this is correct? If it is, I'd really love a way to repair this.

Thank you
 
Viva_touch
Old
#2  
Junior Member
Thanks Meter 0
Posts: 23
Join Date: Feb 2009
Same problem........
 
hackair
Old
#3  
hackair's Avatar
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Jun 2007
Location: Vancouver
Default Same Same!

Hey,

I've got the Dev phone 1, unlocked on Rogers. Similar issue with the SMS timestamp. All incoming SMS are timestamped 5 hours prior to when they were sent. I don't get it.

<Hack>
 
hackair
Old
(Last edited by hackair; 14th February 2009 at 07:50 PM.)
#4  
hackair's Avatar
Junior Member
Thanks Meter 0
Posts: 2
Join Date: Jun 2007
Location: Vancouver
UPdate coming

http://forum.xda-developers.com/show...ight=timestamp

Testing this as we speak.

<Hack>
 
flixxx
Old
#5  
Member - OP
Thanks Meter 0
Posts: 34
Join Date: Nov 2007
That fix will work but your calendar events will be messed up. I posted a reply on the thread you linked.
 
gwydionwaters
Old
#6  
gwydionwaters's Avatar
Senior Member
Thanks Meter 0
Posts: 225
Join Date: Jun 2009
i have been trying to find a way to fix this problem as it is driving me mad lol
so this is what i have come up with so far. the apk Mms.apk is what handles both sms and mms messages. i used baksmali to disassemble the classes.dex after renaming it to .zip and un-zipping. inside there is a dumped class called SmsReciever.smali. inside i found many references to timezones and timestamps etc. i know nothing about java or smali. i did however come upon a possible solution. if someone who was knowledgeable and skilled could append the time retrieval function to resemble: get current time zone, find difference between that and gmt -5, time = result + difference. should work i would think, i may be wrong .. the lines i found of interest are here
_-=Black HTC Hero=-_
Official 2.1 OTA
no root either
 
Post Reply+
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Go to top of page...

XDA PORTAL POSTS

Gear Up Because it’s Time to Save Earth

*Cue Dramatic Music*Put on your red and blue latex overalls and cape because it’s time to … more

Recognized Contributor Code of Conduct

During the first half of 2012, XDA initiated the Recognized Contributor (RC) program to recognize … more

Careers in Android: What Hiring Managers Won’t Tell You – XDA Developer TV

XDA Developer TV Producer Jayce released a video a … more