Page MenuHomePhorge

D25875.1740227108.diff
No OneTemporary

D25875.1740227108.diff

diff --git a/src/view/form/control/AphrontFormDateControlValue.php b/src/view/form/control/AphrontFormDateControlValue.php
--- a/src/view/form/control/AphrontFormDateControlValue.php
+++ b/src/view/form/control/AphrontFormDateControlValue.php
@@ -329,6 +329,9 @@
// If this looks like an epoch timestamp, prefix it with "@" so that
// DateTime() reads it as one. Assume small numbers are a "Ymd" digit
// string instead of an epoch timestamp for a time in 1970.
+ if (!$date) {
+ return null;
+ }
if (ctype_digit($date) && ($date > 30000000)) {
$date = '@'.$date;
}

File Metadata

Mime Type
text/plain
Expires
Sat, Feb 22, 12:25 (1 h, 17 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1173997
Default Alt Text
D25875.1740227108.diff (610 B)

Event Timeline