Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-23730] Windows: Unable to set birthday of a contact

GitHub Issuen/a
TypeBug
PriorityMedium
StatusClosed
ResolutionWon't Fix
Resolution Date2021-02-11T12:18:48.000+0000
Affected Version/sRelease 5.4.0
Fix Version/sn/a
ComponentsWindows
Labelsqe-5.4.0
ReporterEwan Harris
AssigneeUnknown
Created2016-08-04T12:03:05.000+0000
Updated2021-02-11T12:18:48.000+0000

Description

Description

When adding a contact with a birthday the app will throw the following error
Ti.Contacts.requestAuthorization(function(e) {
    if (e.success) {
        Ti.API.info('auth request success');
        Ti.API.info(JSON.stringify(e));
        var person = Ti.Contacts.createPerson({
	      firstName: 'Steven',
	      lastName: 'Gerrard',
	      organization: 'Liverpool FC',
	      phone:{
	        mobile: ['07900 000001', '07900 000002'],
	        work: ['+44 (0)118 925 6128', '+44 (0)118 000 0000']
	      },
	      birthday:'1980-05-30T12:00:00.000+0000'
	    });
    } else {
        Ti.API.info('auth request fail');
        Ti.API.info(e);
    }
});

Steps to reproduce

Add the code above to an existing app.js

Build for Windows platform

Actual result

The app will error with Application Error: "Runtime Error: invalid vector<T> subscript"

Expected result

The birthday should be set with no errors

Comments

No comments

JSON Source