Re: timezone part of dates converted to "-{0}{1}"

Giganews Newsgroups
Subject: Re: timezone part of dates converted to "-{0}{1}"
Posted by:  Michael Johnson (architeuthis6…@yahoo.com)
Date: Fri, 8 Dec 2006

I tried a simpler test:

    Indy::Sockets::Message* msg = new Indy::Sockets::Message;
    msg->Recipients->EMailAddresses = S"testrecipie…@test.com";
    msg->Sender->Text = S"testsend…@test.com";
    msg->Body->Text = S"test";
    msg->SaveToFile("saved_message.txt", false);

The following is the resulting file:

    To: testrecipie…@test.com
    Sender: testsend…@test.com
    Date: Fri, 8 Dec 2006 15:06:41 -{0}{1}
    
    test
    
    .

The resulting time is my local time, not UTC time.

I'm guessing it is supposed to be doing a .NET string substitution (e.g. timezone = String.Format("-{0}{1}",astring1,astring2)) and for some reason the substitution is not happening.

Replies

None

In response to

timezone part of dates converted to "-{0}{1}" posted by Michael Johnson on Fri, 8 Dec 2006