InternetMailMessage.PostingDateOffset

Usage:

Read only.

Description:

Type: Number.
An offset of the sending date relative to UTC in seconds. For the time zones lagging UTC, the value is negative.

An example of reduction of a sending date to the date in the time zone of the session:
DatingPostInSenderZone = Message.PostDating; 
SenderOffset = Message.PostingDateOffset;

// The message sending date reduced to UTC
UTCPostingDate = DatingPostInSenderZone - SenderOffset;

TimeZone = SessionTimeZone(); 

// An offset of the recipient time relative to UTC to the mail sending date considering
// the summer time offset
RecipientOffset = StandardTimeOffset(TimeZone, UTCPostingDate) + 
        DaylightTimeOffset(TimeZone, UTCPostingDate);

// The sending date reduced to the date of receipt. The offset was calculated to the moment the message //was sent 
LocalPostingDate = DatingPostInSenderZone + (RecipientOffset – SenderOffset);



An example of reduction of a sending date to the date in the time zone of the computer:
DatingPostInSenderZone = Message.PostDating; 
SenderOffset = Message.PostingDateOffset;

// The message sending date reduced to UTC
UTCPostingDate = DatingPostInSenderZone - SenderOffset;

TimeZone = TimeZone(); 

// An offset of the recipient time relative to UTC to the mail sending date considering
// the summer time offset
RecipientOffset = StandardTimeOffset(TimeZone, UTCPostingDate) + 
        DaylightTimeOffset(TimeZone, UTCPostingDate);

// The sending date reduced to the date of receipt. The offset was calculated to the moment the message //was sent 
LocalPostingDate = DatingPostInSenderZone + (RecipientOffset – SenderOffset);


Availability:

Thin client, server, thick client, external connection, Mobile application (client), Mobile application (server).

    

1C:Enterprise Developer's Community