[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[elpa] externals/org-jami-bot 4403a1a2d4 11/22: fix time stamp format
From: |
ELPA Syncer |
Subject: |
[elpa] externals/org-jami-bot 4403a1a2d4 11/22: fix time stamp format |
Date: |
Sun, 4 Feb 2024 09:58:51 -0500 (EST) |
branch: externals/org-jami-bot
commit 4403a1a2d4a770bae4f9fbb9e3fb2f2772c83982
Author: Hanno Perrey <hanno@hoowl.se>
Commit: Hanno Perrey <hanno@hoowl.se>
fix time stamp format
use org-time-stamp-format to derive format instead of manual string
manipulation
---
org-jami-bot.el | 11 +++++------
1 file changed, 5 insertions(+), 6 deletions(-)
diff --git a/org-jami-bot.el b/org-jami-bot.el
index de52878710..4838b47913 100644
--- a/org-jami-bot.el
+++ b/org-jami-bot.el
@@ -83,7 +83,7 @@ message belongs to."
(body (cadr (assoc-string "body" msg)))
(lines (string-lines body))
;; use inactive timestamps
- (timefmt (concat "[" (substring (cdr org-time-stamp-formats) 1 -1)
"]")))
+ (timefmt (org-time-stamp-format 't 't)))
(with-current-buffer (get-buffer-create buf)
(insert (if continue
;; multi message capture
@@ -121,7 +121,7 @@ by sending '!done'."
(body (cadr (assoc-string "body" msg)))
(lines (string-lines body))
;; use inactive timestamps
- (timefmt (concat "[" (substring (cdr org-time-stamp-formats) 1 -1)
"]")))
+ (timefmt (org-time-stamp-format 't 't)))
(with-current-buffer (get-buffer-create buf)
(insert (if (string-empty-p buf)
(format "* Multi-message note capture
%s\n:PROPERTIES:\n:CREATED: %s\n:END:\n"
@@ -157,7 +157,7 @@ CONVERSATION for jami ACCOUNT."
(continue (get-buffer buf))
(displayname (cadr (assoc-string "displayName" msg)))
;; use inactive timestamps
- (timefmt (concat "[" (substring (cdr org-time-stamp-formats) 1 -1)
"]")))
+ (timefmt (org-time-stamp-format 't 't)))
(with-current-buffer (get-buffer-create buf)
(let ((link
;; link to downloaded file
@@ -205,8 +205,7 @@ CONVERSATION for jami ACCOUNT."
(let* ((body (cadr (assoc-string "body" msg)))
(lines (string-lines body))
;; use inactive timestamps
- (timefmt (concat "[" (substring (cdr org-time-stamp-formats) 1 -1)
"]")))
-
+ (timefmt (org-time-stamp-format 't 't)))
(if (org-capture-string
(format "* TODO %s\nSCHEDULED: %s\n:PROPERTIES:\n:CREATED:
%s\n:END:\n%s"
(car lines)
@@ -229,7 +228,7 @@ confirmation. ACCOUNT and CONVERSATION are not used."
(lines (string-lines body))
(swhen (org-read-date nil nil (car lines)))
;; inactive timestamp
- (timefmt (concat "[" (substring (cdr org-time-stamp-formats) 1 -1)
"]")))
+ (timefmt (org-time-stamp-format 't 't)))
(if (org-capture-string
(format "* TODO %s\nSCHEDULED: %s\n:PROPERTIES:\n:CREATED:
%s\n:END:\n%s"
(cadr lines)
- [elpa] externals/org-jami-bot ca58e9ca98 12/22: add timestamp of jami msg to file captures, (continued)
- [elpa] externals/org-jami-bot ca58e9ca98 12/22: add timestamp of jami msg to file captures, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 909c9bfbc4 09/22: version bump, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 0f286bab39 20/22: fix author's mail address, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot c51dd81660 02/22: adds gitignore, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 99358b11e4 10/22: fix relative file links by specifying ref dir, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 9417d2814d 18/22: make capture key variable customizable, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot aecf06f8f8 03/22: adds missing defvar, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot be3d5fdd91 05/22: fixes flycheck warnings, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 76d6d76871 06/22: fixes typo in package description, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 36ab0cb49f 08/22: sharp-quote function names, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 4403a1a2d4 11/22: fix time stamp format,
ELPA Syncer <=
- [elpa] externals/org-jami-bot 6d80549e9a 13/22: bump version string, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 70a063515a 14/22: assign copyright to FSF, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 2a95b6aa9d 15/22: style changes, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot b1a780605f 16/22: add .elpaignore, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 544bcdf40a 17/22: fix indentation, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot 020b03f299 21/22: extend documentation, ELPA Syncer, 2024/02/04
- [elpa] externals/org-jami-bot dba915182c 22/22: add NEWS file, ELPA Syncer, 2024/02/04