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

Fixed .quarter property which return always zero value #585

Closed
kenosan opened this issue Sep 3, 2018 · 0 comments
Closed

Fixed .quarter property which return always zero value #585

kenosan opened this issue Sep 3, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@kenosan
Copy link

kenosan commented Sep 3, 2018

Hi,

I’m trying to get the quarter of the year for a date but always getting a 0 value when using the .quarter property. Is this a known issue or am I doing something incorrect?

Sample Code using SwiftDate 5.x:

SwiftDate.defaultRegion = Region.current
let today = DateInRegion()
print(“Quarter = \(today.quarter)”)
@malcommac malcommac changed the title Quarter always returns 0 Fixed .quarter property which return always zero value Sep 18, 2018
@malcommac malcommac self-assigned this Sep 18, 2018
@malcommac malcommac added the bug label Sep 18, 2018
@malcommac malcommac added this to the 5.0.9 milestone Sep 18, 2018
malcommac added a commit that referenced this issue Sep 18, 2018
malcommac added a commit that referenced this issue Sep 18, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants