summaryrefslogtreecommitdiff
path: root/html/app/views/simple/lorem-dates.php
diff options
context:
space:
mode:
authorGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-14 03:10:19 +0200
committerGeorge Halkiadakis <gchalkiadakis@sklavenitis.co.gr>2023-03-14 03:10:19 +0200
commit51b3554ff2988ac61ba3f604431e09941cd95545 (patch)
tree6e2331212ed6f0556e420450deb93e6822e846cd /html/app/views/simple/lorem-dates.php
parent8b928471412bbf9016df9b01b2308f003e455d7d (diff)
downloadclassroom-51b3554ff2988ac61ba3f604431e09941cd95545.tar.gz
classroom-51b3554ff2988ac61ba3f604431e09941cd95545.tar.bz2
classroom-51b3554ff2988ac61ba3f604431e09941cd95545.zip
main css classes for front/back-end
Diffstat (limited to 'html/app/views/simple/lorem-dates.php')
-rw-r--r--html/app/views/simple/lorem-dates.php18
1 files changed, 18 insertions, 0 deletions
diff --git a/html/app/views/simple/lorem-dates.php b/html/app/views/simple/lorem-dates.php
new file mode 100644
index 0000000..7a7c000
--- /dev/null
+++ b/html/app/views/simple/lorem-dates.php
@@ -0,0 +1,18 @@
+<?php
+function some_date() {
+ $dt = new DateTime();
+ $dt->setTimestamp(time() - rand(0,30000)*1000 + rand(1,1000) );
+
+ // return time() - rand(0,30000)*1000 + rand(1,1000);
+ return $dt->format('Y-m-d H:i:s');
+}
+
+
+include 'pythia.php';
+
+$posts = $wiki->latest_posts(0, 900);
+
+foreach($posts as $post) {
+ $wiki->set_date($post['id'], some_date());
+}
+echo "done!"; \ No newline at end of file