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

Ticktick tasks syncing to Google Calendar with a difference of 1 hr #227

Closed
SyedIrtiza555 opened this issue Aug 5, 2021 · 8 comments
Closed
Labels
bug Something isn't working

Comments

@SyedIrtiza555
Copy link

SyedIrtiza555 commented Aug 5, 2021

Read next comment for details
Email: s.irtizahussain@gmail.com

@SyedIrtiza555 SyedIrtiza555 added the bug Something isn't working label Aug 5, 2021
@SyedIrtiza555
Copy link
Author

webcal://ticktick.com/pub/calendar/feeds/g028mav19vza/basic.ics

TickTick Task scheduled at 3pm shows at 4pm in Google Calendar

Screenshot_20210805-142750
Screenshot_20210805-142732

@jonas0b1011001
Copy link
Collaborator

What timeframe and timezone is it showing when you click on the event and edit it?

@SyedIrtiza555
Copy link
Author

Asia/Pakistan

But it isnt a problem of timezone... Tickticks ical by itself gives the start time an hour late... Can this be edited within the script?

@derekantrican
Copy link
Owner

Tickticks ical by itself gives the start time an hour late

Why? If your task is at 3pm, why does the ical give 4pm?

Can this be edited within the script?

Sure, but based on your answer to the question above, you might want to talk to ticktick about how to fix this (if it's unintended)

@SyedIrtiza555
Copy link
Author

Talking to Tick tick is a lengthy step...
I think TickTick's iCal shows starttime=endtime..
Can this be done through the script?

@jonas0b1011001
Copy link
Collaborator

Can this be done through the script?

Sure, just change Helpers.gs lines 293-301 to


    newEvent = {
      start: {
        dateTime : icalEvent.startDate.adjust(0,-1,0,0).toString(),
        timeZone : tzid
      },
      end: {
        dateTime : icalEvent.endDate.adjust(0,-1,0,0).toString(),
        timeZone : tzid
      },
    };

@SyedIrtiza555
Copy link
Author

@jonas0b1011001 Thanks.... This worked.... 💯

Thanks @derekantrican. Thanks for this script. 💯

@SyedIrtiza555
Copy link
Author

Kindly someone close this issue... This one's resolved now... I donno how to do this...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

3 participants