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

Custom timestamps? #28

Open
MilanObrenovic opened this issue Jan 28, 2022 · 4 comments
Open

Custom timestamps? #28

MilanObrenovic opened this issue Jan 28, 2022 · 4 comments

Comments

@MilanObrenovic
Copy link

MilanObrenovic commented Jan 28, 2022

Is it possible to change the timestamp of posted message? Instead of automatically displaying current date, maybe have a configuration option to display it as current timestamp of hh:mm:ss or let us manually write time?

Examples of actual discord formatting:
Today at 7:12 PM
Yesterday at 1:15 PM
01/25/2022

@Danktuary
Copy link
Owner

Both the DiscordEmbed and DiscordMessage components support a timestamp prop that accepts either a Date object or a valid value to be passed in new Date(), e.g. '01/02/2022' as a string. Timestamps will always be displayed in mm/dd/yyyy format.

@MilanObrenovic
Copy link
Author

MilanObrenovic commented Jan 28, 2022

Timestamps will always be displayed in mm/dd/yyyy format.

Yes that's why i asked this question, is it possible to display "Today at 12:36 AM" instead of "01/29/2022" ?

@Danktuary
Copy link
Owner

No it's currently not possible, I don't have any plans to update it as such

@MilanObrenovic
Copy link
Author

MilanObrenovic commented Feb 5, 2022

No it's currently not possible, I don't have any plans to update it as such

Could you please make this one change if you have some spare time? Ability for manually setting custom timestamp with hours and minutes can be important for visual representation. I'd make a pull request to update this but i work in angular and not react

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

2 participants