Giter Site home page Giter Site logo

What timezone? about hubot-schedule HOT 5 CLOSED

matsukaz avatar matsukaz commented on September 27, 2024
What timezone?

from hubot-schedule.

Comments (5)

matsukaz avatar matsukaz commented on September 27, 2024

Thanks for your comment :)

This plugin doesn't handle any timezone, so as you mentioned, the cron follows on the server time settings.

I was also thinking of supporting timezone, but the "node-schedule" I'm using doesn't support it, so it's quite hard to do so.

May be I should use "node-cron" instead, which act like "cron-parser" and also supports timezone.
Anyway, I'll try to support timezone in next few days.

from hubot-schedule.

MrMMorris avatar MrMMorris commented on September 27, 2024

@matsukaz no worries on the timezones. My servers are in UTC anyways so it's not hard to adjust. Probably more work than it's worth.

I should note, however, that there is some weirdness with the script.

It seems I can create schedules and they work fine, but when I delete them, even though it doesn't run anymore and is gone in Redis, they all still show up with hubot schedule list

$ Hubot schedule list
Message is not scheduled

$ Hubot schedule new "1 1 * * 1-4" blah
8085: Schedule created

$ Hubot schedule list
8085: [ 1 1 * * 1-4 ] #test blah

$ Hubot schedule remove 8085
8085: Schedule cancelled

$ Hubot schedule list 
8085: [ 1 1 * * 1-4 ] #test blah

Not sure if it's being cached or something.

from hubot-schedule.

matsukaz avatar matsukaz commented on September 27, 2024

Humm, that's weird...
I'll try to fix that first, and than think about timezone later.

from hubot-schedule.

matsukaz avatar matsukaz commented on September 27, 2024

@MrMMorris
I've just fixed the bug you have mentioned and bumped version to 0.2.1. Thanks for your report!

from hubot-schedule.

MrMMorris avatar MrMMorris commented on September 27, 2024

you're amazing!

from hubot-schedule.

Related Issues (9)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.