cachethq / cachet

🚦 The open-source status page system.
https://cachethq.io
MIT License
13.98k stars 1.55k forks source link

Change dashboard date st,nd,th etc. #4129

Closed razerrazer closed 1 year ago

razerrazer commented 3 years ago

Hi,

We want to change the st,nd,th etc to swedish instead like a,e i can't find any of this in the translation file.

See attached file. photo_2020-10-02_11-33-36

photo_2020-10-02_11-34-32

Let me know if you need more information

welcome[bot] commented 3 years ago

:wave: Thank you for opening your first issue. I'm just an automated bot that's here to help you get the information you need quicker, so please ignore this message if it doesn't apply to your issue. If you're looking for support, you should try the Slack group by registering your email address at https://cachethq-slack.herokuapp.com. Alternatively, email support@alt-three.com for our Professional support service (please note, this a paid service.) If you're issue is with documentation, you can suggest edits by clicking the Suggest Edits link on any page, or open an issue at https://github.com/CachetHQ/Docs

NiTRoeSE commented 3 years ago

@razerrazer Hi, i have the same problem, did you find any solution for this ?

thanks in advanced!

InFerYes commented 3 years ago

Do any of you 2 have this resolved?

pavog commented 3 years ago

Hi guys,

I found a way to remove the "English order suffix for the day of the month" (st, nd, rd, th, ...). As you can see in incidents.blace.php, it uses the function formatted_date to output the date in a human readable format. The function formatted_date from helpers.php takes the setting setting.date_format or the default value jS F Y (see php format reference here). You can override the default value by going into your configuration file. The location of the configuration file depends on your app environment.

There you will find an array with the key date_format. For example, I changed the value for the date_format to l j F Y. You need to restart your application after you have changed the value. You may need to clear your cached configuration.

I don't know if you can change the value for this setting with your .env file. I tried adding DATE_FORMAT="l j F Y" there (and clearing my configuration with artisan config:clear), but it didn't work. Maybe someone else can find a way for this problem.

jbrooksuk commented 1 year ago

Thank you for your input on Cachet 2.x. We are shifting our attention and resources to Cachet 3.x and will no longer be supporting the 2.x version. If your feedback or issue is relevant to the 3.x series, we encourage you to engage with the new branch.

For more information on the Cachet rebuild and our plans for 3.x, you can read the announcement here.

We appreciate your understanding and look forward to your contributions to the new version.