-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Database template column supports created
and updated
built-in variables
#9364
Comments
列类型就不添加了,还是使用模板比较好,这样可以方便更多场景和格式化。 稍后会为模板列添加内置变量
|
88250
changed the title
Database 支持显示块的创建时间和更新时间
Database template column supports Oct 8, 2023
created
and updated
built-in variables
88250
added a commit
that referenced
this issue
Oct 8, 2023
88250
added a commit
that referenced
this issue
Oct 8, 2023
使用模板列的话对于日期是难以筛选和排序的吧。 |
格式化成字符串以后可以。 |
哦,我之前以为你说的是模板语法。这样的场景确实有必要支持创建时间和更新时间类型列,单独开个 issue 吧 #9371 |
Closed
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Database 支持显示块的创建时间和更新时间
In what scenarios do you need this feature?
目前的时间列只能手动选择及更改时间,database的显示时间更多情况下,需要显示笔记的创建时间和更新时间,有自动更新时间的需求。
目前的模板列当我输入.action{.created}是不加载数据的,
输入.action{.updated}可以显示时间数据,但又是纯文字的,不支持直接使用action{.updated | date "2006.01.02 Mon"}格式化数据。
Describe the optimal solution
更友好些的优化,直接提供块创建日期和更新日期列,也可以直接从当前的日期列添加选项,是否为块的创建日期或更新日期列
Describe the candidate solution
硬核方面的优化,模板列能格式化显示块的创建时间和更新时间,得到比如2023-10-07,或2023.10.07格式的显示数据
Other information
none
The text was updated successfully, but these errors were encountered: