alibaba / alibaba/HandyJSON

升级到新的代码后,在模拟器上DateFormatterTransform转Date失败,在真机上没问题

Open
#221 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Swift
Stars
4.3k
Forks
677
PR merge metrics
No merged PRs in 30d

Description

最近升级到最新的代码和xcode后,postingDate在模拟器上为nil,在真机上是ok的,以前在模拟器上也是ok的
mapper <<< self.postingDate <-- DateFormatterTransform(dateFormatter: format)

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at DateFormatterTransform and the mapper assignment shown in the report, then reproduce the postingDate conversion on both simulator and device using the affected Xcode version and date format. Done means postingDate is populated consistently on the simulator without regressing the working device behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
swift
Domain
data
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.