Skip to content

calendarView.selectDate(Date()) displaying UTC time not Calendar.current #130

@johnoutdoorsy

Description

@johnoutdoorsy

I know inside calendarView.swift I can do something like this to fix it:

public lazy var calendar : Calendar = {
        return Calendar.current
    }()

but I'm using pods and I rather not break the code. Any idea on how I can use calendarView.selectDate(Date()) to properly display a date on my calendar? I don't see how showing the UTC time on the calendar is useful?

What's interesting is if you set the style.cellColorToday it selected the local "today" so how do I do the same with selectDate()?

Screen Shot 2020-09-10 at 7 25 07 PM

--
I've also tried the demo app and it behaves the same way.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions