×

Discussion Board

Results 1 to 2 of 2
  1. #1
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Question CSmsMessage::Time() returns current time instead of the time of sms creation

    Hello,

    I'm using CSmsMessage::Time() to get the time of sms creation (on the sender side). But always I get the current time. I'm using socket to read from and later I'm using CSmsMessage to parse the received data:

    Code:
               CSmsBuffer* buffer = CSmsBuffer::NewL();
                CleanupStack::PushL( buffer );
    
                CSmsMessage* message = CSmsMessage::NewL( iFs,
                        CSmsPDU::ESmsDeliver, buffer );
                CleanupStack::Pop( buffer );
                CleanupStack::PushL( message );
    
                RSmsSocketReadStream readStream( iReadSocket );
                CleanupClosePushL( readStream );
    
                
                message->InternalizeL( readStream );
                CleanupStack::PopAndDestroy( &readStream );
    
                TPtrC number = message->ToFromAddress();
    
                iTime = message->Time();
    The problem is that message->Time() does not return the correct time but the time when the sms was received.

  2. #2
    Regular Contributor
    Join Date
    Jul 2008
    Posts
    416

    Re: CSmsMessage::Time() returns current time instead of the time of sms creation

    Anyone else tried to use message->Time()? TPtrC number = message->ToFromAddress(); works, why the time is incorrect?

Similar Threads

  1. Get File Creation time and date
    By bluesqrl in forum Symbian
    Replies: 3
    Last Post: 2008-10-03, 09:24
  2. Replies: 2
    Last Post: 2007-11-10, 13:19
  3. Send SMS Problem. Cannot Get SMSC Address. Due to Strange SIM Card?
    By cksong in forum Mobile Java Networking & Messaging & Security
    Replies: 1
    Last Post: 2007-07-02, 16:13
  4. Personal
    By JSmith77 in forum PersonalJava
    Replies: 4
    Last Post: 2003-07-30, 12:52
  5. SMS time stamp format with time zone parameter?
    By turunhe in forum General Messaging
    Replies: 1
    Last Post: 2002-06-11, 07:00

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
×