diff options
author | cynic <admin@cynic.moe> | 2023-09-22 21:44:33 -0500 |
---|---|---|
committer | lolcat <lolcat@no-reply@lolcat.ca> | 2023-09-22 21:44:33 -0500 |
commit | 24cfc5136e7d34e72661794e23f036f14fc8cc3e (patch) | |
tree | 244160c1aa729db6dc0dd8f40487c441da029f92 /oracles/time.php | |
parent | b7cc53c156867ea3d0351737d9815d506b61db09 (diff) |
some misc. oracles stuff (fixes/features) (#15)
fix a small calc.php bug, and add date information to the time module. the changes have been sitting on a branch for like a week, so I figured I'd cherry-pick them over to this branch for a PR.
[as always, these changes are live on my instance.](https://4get.silly.computer/web?s=what+is+the+date&scraper=yandex&nsfw=yes)
Reviewed-on: https://git.lolcat.ca/lolcat/4get/pulls/15
Co-authored-by: cynic <admin@cynic.moe>
Co-committed-by: cynic <admin@cynic.moe>
Diffstat (limited to 'oracles/time.php')
-rw-r--r-- | oracles/time.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/oracles/time.php b/oracles/time.php index 57af093..954bc60 100644 --- a/oracles/time.php +++ b/oracles/time.php @@ -8,7 +8,7 @@ class time extends oracle { $prompts = [ "what", "time", "is", "it", "right", "now", "the", "current", - "get" + "get", "date" ]; $q = str_replace(",", "", $q); $q = str_replace("?", "", $q); @@ -37,6 +37,7 @@ class time extends oracle { date_default_timezone_set($timezone); return [ "The time in ".$timezone => date("H:i:s"), + " " => date("l, F jS"), "" => "include the string \"tz:XXX\" to use timezone XXX" ]; } |