Skip to content

... day to go Error #228

@paymanzafar

Description

@paymanzafar

Hello everyone.

If you set the custom notifications for less than 1 day, for example for 2 hours, you will see [0.083333333 days to go] in the mobile app notification. I solved this problem (for hours) by correcting get_message_plaintext function in due_reminder.class.php file. The same function must be corrected in other files like : user_reminder.class.php, etc.

if ($this->aheaddays < 1.0 AND $this->aheaddays > 0 ) {
$aheadhours = $this->aheaddays*24;
$this->get_message_title().' ['.$this->pluralize($aheadhours, ' hour').' to go]'."\n";
} else {
$this->get_message_title().' ['.$this->pluralize($this->aheaddays, ' day').' to go]'."\n";
}

The same applies for custom notifications in minutes, or seconds.

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