Skip to content
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

[Question] 3.1.9.1 查询结果时间格式与源格式不同 #1159

Open
1 task
iuwai opened this issue Dec 23, 2024 · 6 comments
Open
1 task

[Question] 3.1.9.1 查询结果时间格式与源格式不同 #1159

iuwai opened this issue Dec 23, 2024 · 6 comments

Comments

@iuwai
Copy link

iuwai commented Dec 23, 2024

描述问题
查询结果时间格式与源格式不同,容易造成误导,以为是数据库里格式不对

复现
重现该行为的步骤:

  1. 使用查询功能,查询结果中如果是date格式,结果展示格式被修改

期望的结果
保留日期源格式

截图
实际效果:

image

期望效果:
image

部署方式

  • Docker
  • [ √ ] Manual

环境 (请填写环境信息):

  • 操作系统: CentOS 7.9
  • 浏览器 所有
  • 版本号 3.1.9.1
@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Title: [Question] 3.1.9.1 The query result time format is different from the source format

Describe the problem
The query result time format is different from the source format, which can easily lead to misleading people, thinking that the format in the database is incorrect.

Recurrence
Steps to reproduce the behavior:

  1. When using the query function, if the query result is in date format, the result display format will be modified.

Desired results
Preserve date source format

screenshot
Actual effect:

image

Expected results:
image

Deployment method

  • Docker
  • [√] Manual

Environment (please fill in environmental information):

  • Operating system: CentOS 7.9
  • Browser All
  • Version number 3.1.9.1

Copy link

dosubot bot commented Dec 23, 2024

Hey @iuwai! 👋 I'm here to help you with bug fixes, answer your questions, and guide you as a contributor. Let's tackle this issue together!

The issue you're experiencing with the Yearning platform, where the query result time format differs from the source format, is likely due to the way the platform formats date and time. In the Yearning codebase, date and time formatting for query results is handled using the time.Now().Format("2006-01-02 15:04") method in the ReferQueryOrder and SocketQueryResults functions within the src/handler/personal/query.go file [1]. This formatting might be causing the discrepancy you're observing.

To address this, you might need to modify the code to retain the original date format from the database. Alternatively, check if there are any configuration options available that allow you to customize the date and time format, although such options were not found in the available information.

To continue talking to Dosu, mention @dosu.


Help Dosu learn! Give it feedback: Great Response | Irrelevant Answer | Incorrect Sources | Too Verbose | Hallucination | Other

@lanyue1122
Copy link

遇到同样的问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Encountered the same problem

@TemplateXu
Copy link

同样问题

@Issues-translate-bot
Copy link

Bot detected the issue body's language is not English, translate it automatically. 👯👭🏻🧑‍🤝‍🧑👫🧑🏿‍🤝‍🧑🏻👩🏾‍🤝‍👨🏿👬🏿


Same problem

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants