Req #78459 [NEW]: Please Provide The Feture Of AM/PM Comparission.

From: Date: Mon, 26 Aug 2019 16:12:39 +0000
Subject: Req #78459 [NEW]: Please Provide The Feture Of AM/PM Comparission.
Groups: php.bugs 
Request: Send a blank email to php-bugs+get-222421@lists.php.net to get a copy of this message
From: tpatel6964 dot sd at gmail dot com Operating system: Windows 10 64-Bit PHP version: 7.4Git-2019-08-26 (Git) Package: Date/time related Bug Type: Feature/Change Request Bug description:Please Provide The Feture Of AM/PM Comparission. Description: ------------ --- From manual page: https://php.net/refs.calendar --- Please Make A Feture Of Comparing Time in AM/PM Like example Is Given Below: Test script: --------------- $date = date_default_timezone_set('Asia/Kolkata'); $Darshanfrom="5:00 AM"; $Darshanto="9:00 PM"; $today=date("g:i A"); if($today>=$Darshanfrom && $today<=$Darshanto) { echo"The Meassgae Is Here"; header("Location: https://www.sai.org.in/en/sai-video-popup"); } else { echo"The Message Is Here!"; } Expected result: ---------------- if the condition is true then it will be redirected to header location else it will be print the echo massge Actual result: -------------- it Will Always Print The Else Part -- Edit bug report at https://bugs.php.net/bug.php?id=78459&edit=1 -- Fix committed: https://bugs.php.net/fix.php?id=78459&r=fixed Fixed in release: https://bugs.php.net/fix.php?id=78459&r=alreadyfixed Need backtrace: https://bugs.php.net/fix.php?id=78459&r=needtrace Need Reproduce Script: https://bugs.php.net/fix.php?id=78459&r=needscript Try newer version: https://bugs.php.net/fix.php?id=78459&r=oldversion Not developer issue: https://bugs.php.net/fix.php?id=78459&r=support Expected behavior: https://bugs.php.net/fix.php?id=78459&r=notwrong Not enough info: https://bugs.php.net/fix.php?id=78459&r=notenoughinfo Submitted twice: https://bugs.php.net/fix.php?id=78459&r=submittedtwice register_globals: https://bugs.php.net/fix.php?id=78459&r=globals PHP version support discontinued: https://bugs.php.net/fix.php?id=78459&r=phptooold Daylight Savings: https://bugs.php.net/fix.php?id=78459&r=dst IIS Stability: https://bugs.php.net/fix.php?id=78459&r=isapi Install GNU Sed: https://bugs.php.net/fix.php?id=78459&r=gnused Floating point limitations: https://bugs.php.net/fix.php?id=78459&r=float No Zend Extensions: https://bugs.php.net/fix.php?id=78459&r=nozend MySQL Configuration Error: https://bugs.php.net/fix.php?id=78459&r=mysqlcfg

« previous php.bugs (#222421) next »