Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

timeZone 设置导致日期起止时间显示不正确 #277

Closed
FunnyerFeng opened this issue Jul 7, 2022 · 3 comments
Closed

timeZone 设置导致日期起止时间显示不正确 #277

FunnyerFeng opened this issue Jul 7, 2022 · 3 comments

Comments

@FunnyerFeng
Copy link

当传入timeZone 时,因为NSDate+BRPickerView中的br_calendar的timeZone 没有设置成传入的timeZone,导致日历的起止时间显示不正确

@FunnyerFeng
Copy link
Author

使用的版本:pod 'BRPickerView', '2.7.8'

@agiapp agiapp closed this as completed in 543c70d Jul 7, 2022
@FunnyerFeng
Copy link
Author

新版本代码中并没有修复的代码

@agiapp
Copy link
Owner

agiapp commented Jul 22, 2022

可以使用下面方法来创建起止时间

/// ---------------- 创建 date ----------------
/** 通过 NSDateComponents对象 来创建 NSDate对象(可以设置时区) */
+ (nullable NSDate *)br_setDateFromComponents:(NSDateComponents *)components timeZone:(NSTimeZone *)timeZone;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants