【问题标题】:Later.js - text parse is o.k but interval didnt workLater.js - 文本解析没问题,但间隔不起作用
【发布时间】:2017-11-15 02:37:04
【问题描述】:

情况:在我的代码中,我使用文本解析器按时间间隔使用后来的 js。 我解析了 3 个不同的案例:每小时、每天、每周 所有 3 种情况的解析都很好! (返回 schduale.error = -1)。

问题: 如果我将其设置为关闭时间,则每天和每周对我不起作用 示例:如果现在时间是星期二下午 1:45 我定义: 每日:在“下午 01:48 和下午 1:50” 每周:“周二和周三上午 01:50”

我该如何解决这个问题?

【问题讨论】:

    标签: javascript laterjs


    【解决方案1】:

    问题解决了! 这是我的时间与后来的 js 之间没有同步的时区。 您需要做的就是添加推荐:

    const later = require ('later'); //the reqiure you already have
    later.date.localTime() 
    

    在后面的 js 中没有任何文档。 但我在问题中发现了这一点:https://github.com/bunkat/later/issues/95

    祝你好运!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-22
      • 1970-01-01
      • 1970-01-01
      • 2019-12-03
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多