Skip to content

Enhancement: Assume a past time is meant to be sent tomorrow #191

@GoogleCodeExporter

Description

@GoogleCodeExporter
Feature request:

When sending an email @8am, and it's already 9am, I would like the script to 
assume I meant '8am tomorrow', instead of '8am current day'.

So in general, as javascript:

deliver_at = new Date(timestamp_at_which_to_deliver);
now = new Date();
if (deliver_at < now) deliver_at = new Date(now.getYear(), now.getMonth(), 
now.getDay() + 1, deliver_at.getHours(), deliver_at.getMinutes(), 
deliver_at.getSeconds(), deliver_at.getMilliseconds()) ;

Original issue reported on code.google.com by timdiel...@gmail.com on 18 Feb 2015 at 7:07

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions