Skip to content

Commit febd43e

Browse files
Bugfix: timestamp as 32bit integer (#916)
32bit signed integer will overflow in year 2038
1 parent 131706b commit febd43e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/SendGrid/Helpers/Mail/SendGridMessage.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -387,7 +387,7 @@ public void AddCustomArgs(Dictionary<string, string> customArgs, int personaliza
387387
/// <param name="sendAt">Specify the unix timestamp for when you want the email to be sent from Twilio SendGrid.</param>
388388
/// <param name="personalizationIndex">Specify the index of the Personalization object where you want to add the send at timestamp.</param>
389389
/// <param name="personalization">A personalization object to append to the message.</param>
390-
public void SetSendAt(int sendAt, int personalizationIndex = 0, Personalization personalization = null)
390+
public void SetSendAt(long sendAt, int personalizationIndex = 0, Personalization personalization = null)
391391
{
392392
personalization = GetPersonalization(personalizationIndex, personalization);
393393
personalization.SendAt = sendAt;

0 commit comments

Comments
 (0)