Skip to content

Commit

Permalink
Updated repeatability first sent to correct format in SMS
Browse files Browse the repository at this point in the history
  • Loading branch information
lsundaralingam committed May 10, 2021
1 parent 9b79695 commit 680bfc5
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from azure.communication.sms._models import SmsSendResult

from ._generated._azure_communication_sms_service import AzureCommunicationSMSService
from ._shared.utils import parse_connection_str, get_authentication_policy
from ._shared.utils import parse_connection_str, get_authentication_policy, get_current_utc_time
from ._version import SDK_MONIKER

class SmsClient(object):
Expand Down Expand Up @@ -113,7 +113,7 @@ def send(self, from_, # type: str
SmsRecipient(
to=p,
repeatability_request_id=str(uuid4()),
repeatability_first_sent=datetime.utcnow()
repeatability_first_sent=get_current_utc_time()
) for p in to
],
message=message,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
from azure.communication.sms._models import SmsSendResult

from .._generated.aio._azure_communication_sms_service import AzureCommunicationSMSService
from .._shared.utils import parse_connection_str, get_authentication_policy
from .._shared.utils import parse_connection_str, get_authentication_policy, get_current_utc_time
from .._version import SDK_MONIKER

class SmsClient(object):
Expand Down Expand Up @@ -114,7 +114,7 @@ async def send(self, from_, # type: str
SmsRecipient(
to=p,
repeatability_request_id=str(uuid4()),
repeatability_first_sent=datetime.utcnow()
repeatability_first_sent=get_current_utc_time()
) for p in to
],
message=message,
Expand Down

0 comments on commit 680bfc5

Please sign in to comment.