浏览代码

Posts from the command line accept the DATE env var.

default 1 年之前
父节点
当前提交
9260a1e328
共有 1 个文件被更改,包括 1 次插入 和 1 次删除
  1. 1 1
      main.c

+ 1 - 1
main.c

@@ -710,7 +710,7 @@ int main(int argc, char *argv[])
         if (strcmp(cmd, "note_unlisted") == 0)
             scope = 2;
 
-        msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), NULL);
+        msg = msg_note(&snac, content, NULL, NULL, attl, scope, getenv("LANG"), getenv("DATE"));
 
         c_msg = msg_create(&snac, msg);