Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14347156
D16326.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
676 B
Referenced Files
None
Subscribers
None
D16326.diff
View Options
diff --git a/src/applications/search/field/PhabricatorSearchDateField.php b/src/applications/search/field/PhabricatorSearchDateField.php
--- a/src/applications/search/field/PhabricatorSearchDateField.php
+++ b/src/applications/search/field/PhabricatorSearchDateField.php
@@ -35,6 +35,14 @@
return null;
}
+ // If this appears to be an epoch timestamp, just return it unmodified.
+ // This assumes values like "2016" or "20160101" are "Ymd".
+ if (is_int($value) || ctype_digit($value)) {
+ if ((int)$value > 30000000) {
+ return (int)$value;
+ }
+ }
+
return PhabricatorTime::parseLocalTime($value, $this->getViewer());
}
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Dec 20, 2:51 AM (20 h, 43 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6909279
Default Alt Text
D16326.diff (676 B)
Attached To
Mode
D16326: Correct an issue with epoch timestamps in Conduit
Attached
Detach File
Event Timeline
Log In to Comment