Ticket #12038: 0001-Avoid-localized-decimal-delimiter-for-integer.patch

File 0001-Avoid-localized-decimal-delimiter-for-integer.patch, 1.0 KB (added by Karl Egly, 8 years ago)
  • modules/tv/classes/Schedule.php

    From 5c6067f1d31a3fcd7cfd93631df84f18fab7750f Mon Sep 17 00:00:00 2001
    From: Karl Dietz <dekarl@mythtv.org>
    Date: Mon, 17 Mar 2014 21:17:33 +0100
    Subject: [PATCH] Avoid localized decimal delimiter for integer
    
    Refs #12038
    ---
     modules/tv/classes/Schedule.php |    2 +-
     1 file changed, 1 insertion(+), 1 deletion(-)
    
    diff --git a/modules/tv/classes/Schedule.php b/modules/tv/classes/Schedule.php
    index a631d06..0c54c5a 100644
    a b class Schedule extends MythBase { 
    291291    // Make sure that recordid is null if it's empty
    292292        if (empty($this->recordid)) {
    293293            $this->recordid = NULL;
    294             $this->findid   = (date('U', $this->starttime)/60/60/24) + 719528;
     294            $this->findid   = Math.floor(date('U', $this->starttime)/60/60/24) + 719528;
    295295        // Only auto-default these properties if we're not dealing with a
    296296        // search-based recording rule, otherwise take the values we
    297297        // received from the custom schedule input form