pub / rememori

Simple file-based bookmarking and notes application
git clone https://src.jayvii.de/pub/rememori.git
Home | Log | Files | Exports | Refs | README | RSS

commit 96edf48eb381c13478fc27161aad504569a5e4d1
parent 1ef8d1fa90f3bb44bfd5abdc526758baeb05c2cc
Author: JayVii <jayvii[AT]posteo[DOT]de>
Date:   Sat, 26 Oct 2024 19:48:01 +0200

fix: use ATOM time formatting

Diffstat:
Mapi/rss.php | 4++--
Mconfig/config.php | 3+++
2 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/api/rss.php b/api/rss.php @@ -66,7 +66,7 @@ Rememori notes in <?php echo $user . "/" . $category; ?> </description> <generator>rememori</generator> -<lastBuildDate><?php echo date("Y-m-d H:i:s", time()); ?></lastBuildDate> +<lastBuildDate><?php echo date(DATE_ATOM, time()); ?></lastBuildDate> <atom:link href="<?php echo $my_url; ?>" rel="self" type="application/rss+xml"/> <?php @@ -85,7 +85,7 @@ <item> <title><?php echo $note["name"]; ?></title> <link><?php echo $note["link"]; ?></link> -<pubDate><?php echo date("Y-m-d H:i:s", $note["time"]); ?></pubDate> +<pubDate><?php echo date(DATE_ATOM, $note["time"]); ?></pubDate> <guid><?php echo $note["link"]; ?></guid> <description> <?php echo read_note($user, $note["category"], $note["name"] . ".txt"); ?> diff --git a/config/config.php b/config/config.php @@ -1,4 +1,7 @@ <?php +date_default_timezone_set("Europe/Berlin"); $GLOBALS["pw_salt"] = "set_a_proper_salt"; $GLOBALS["data_dir"] = $_SERVER["DOCUMENT_ROOT"] . "/data"; + +?>