Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F2984281
D25875.1740005904.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Award Token
Flag For Later
Advanced/Developer...
View Handle
View Hovercard
Size
609 B
Referenced Files
None
Subscribers
None
D25875.1740005904.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Wed, Feb 19, 22:58 (21 h, 16 m ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
1173998
Default Alt Text
D25875.1740005904.diff (609 B)
Attached To
Mode
D25875: PHP 8.1: Do not pass null to ctype_digit() in AphrontFormDateControlValue::getStandardDateFormat()
Attached
Detach File
Event Timeline
Log In to Comment