mediator icon indicating copy to clipboard operation
mediator copied to clipboard

Can't figure out how to localize dates

Open koulaxizis opened this issue 8 years ago • 2 comments

Hey bro! I'm just a regular user without any knowledge of coding. I saw your theme, loved it and decided to give it a try. And it's really awesome!! I translated the whole project into Greek - except one little part: I can't figure out how to localize dates. I'd like to translate them into Greek too! Could you please help?

koulaxizis avatar Jun 12 '16 21:06 koulaxizis

Are you looking to have it always be in Greek? Or just if that person is looking at it in Greece?

If you always want it in Greek, just set the date in your post header to be the date in Greek. If you want it to change depending on location, check out the JavaScript function Date#toLocaleDateString which takes a date and prints it according to the local browser settings.

excel-tricks avatar Jul 16 '16 13:07 excel-tricks

I'm looking to have it always be in Greek.

The dates are still in English, no matter what I try (I repeat though, I'm not a programmer, it's probably my mistake). They appear as "July", not "Ιούλιος". That's what I'd like to change...

koulaxizis avatar Jul 26 '16 20:07 koulaxizis