DataStyle issues when creating pass for savings book
I am creating a pass generator using PHP-PKPass. Everything works fine until I try to add dateStyle. When I put
'auxiliaryFields' => array ( array ( 'key' => 'expires', 'label' => 'Expiration Date', 'dateStyle' => 'PKDateStyleFull', 'timeStyle' => 'PKDateStyleNone', 'value' => $ expires.'T12: 00 + 6.00 ' ) )
password created, works on android, but from iphone when trying to download it shows that "cannot be downloaded from safari" ... here is the generated pass - Pass (does not work on iphone)
but if i remove the 'dateStyle' and 'timeStyle' part -
'auxiliaryFields' => array ( array ( 'key' => 'expires', 'label' => 'Expiration Date', 'value' => $ expires.'T12: 00 + 6.00 ' ) )
the run is created and works on both android and iphonne ... here is the generated pass - Pass (working)
what is causing the problem?
source to share
In addition to the information in the comments, your date is still not in the current ISO 8601 format .
Jun 22 00:30:05 pfr MobileSafari[4233] <Warning>: Invalid data error reading pass pass.com.retailness.testing.passbook/51136. Unable to parse expires 06-29-2015T12:00+06:00 as a date. We expect dates in "W3C date time stamp format", either "Complete date plus hours and minutes" or "Complete date plus hours, minutes and seconds". For example, 1980-05-07T10:30-05:00.
Jun 22 00:30:05 pfr MobileSafari[4233] <Warning>: PassBook Pass download failed: The pass cannot be read because it isnβt valid.
Change the date to display in Year-Month-Day format, for example. 2015-06-29T12:00+06:00
and you have to find him a job.
source to share