diff --git a/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py b/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py index f73e687002..1304d71878 100644 --- a/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py +++ b/lms/djangoapps/linkedin/management/commands/linkedin_mailusers.py @@ -89,7 +89,7 @@ class Command(BaseCommand): ('pfAuthorityId', self.api.config['COMPANY_ID']), ('pfCertificationUrl', certificate.download_url), ('pfLicenseNo', certificate.course_id), - ('pfCertStartDate', course.start.strftime('%Y%mI')), + ('pfCertStartDate', course.start.strftime('%Y%m')), ('_mSplash', '1'), ('trk', tracking_code), ('startTask', 'CERTIFICATION_NAME'), diff --git a/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py b/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py index d09865f514..d806272757 100644 --- a/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py +++ b/lms/djangoapps/linkedin/management/commands/tests/test_mailusers.py @@ -166,5 +166,5 @@ class MailusersTests(TestCase): 'pfCertificationName=TestX%2FIntro101&pfAuthorityName=edX&' 'pfAuthorityId=0000000&' 'pfCertificationUrl=http%3A%2F%2Ftest.foo%2Ftest&pfLicenseNo=TEST1&' - 'pfCertStartDate=201005I&_mSplash=1&' + 'pfCertStartDate=201005&_mSplash=1&' 'trk=eml-prof-TestX-1-T&startTask=CERTIFICATION_NAME&force=true')