No funded issue found.
Check out the Issue Explorer
Be the OSS Funding you wish to see in the world.
Looking to fund some work? You can submit a new Funded Issue here .
Time left
Opened
Issue Type
Workers Auto Approve
Project Type
Time Commitment
Experience Level
Permissions
Accepted
Reserved For
"Page last updated" timestamp format is always "en" locale
ethereum
JavaScript, Moment.js
### Prize Bounty
20 DAI
### Challenge Description
Fix the bug described below.
### Judging Criteria
The prize will be awarded to the first valid submission.
***
**Describe the bug**
Our `getLocaleTimestamp` util function is not formatting the timestamp according to the correct locales.
**To Reproduce**
Steps to reproduce the behavior:
1. Navigate to several pages across translations, e.g:
- https://ethereum.org/en/eth/
- https://ethereum.org/de/eth/
- https://ethereum.org/fr/eth/
2. View the first line of content:
- https://ethereum.org/en/eth/

- https://ethereum.org/de/eth/

- https://ethereum.org/fr/eth/

Across all languages, the timestamp format is the same.
Digging in to the `getLocaleTimestamp` function, it appears that setting the locale via Moment.js is not working properly:
```
import moment from "moment"
export const getLocaleTimestamp = (locale, timestamp) => {
console.log(moment.locale()) // always logs 'en'
moment.locale(locale)
console.log(moment.locale()) // still always logs 'en'
return moment(timestamp, ["ll", "YYYY"]).format("ll")
}
```
**Expected behavior**
The display date should be formatted differently depending on the locale.
**Desktop (please complete the following information):**
All
**Smartphone (please complete the following information):**
All
Setup your profile
Tell us a little about you:
Skills
No results found for [[search]] .
Type to search skills..
Bio Required
[[totalcharacter]] / 240
Are you currently looking for work?
[[ option.string ]]
Next
Setup your profile
Our tools are based on the principles of earn (💰), learn (📖), and meet (💬).
Select the ones you are interested in. You can change it later in your settings.
I'm also an organization manager looking for a great community.
Back
Next
Save
Enable your organization profile
Gitcoin products can help grow community around your brand. Create your tribe, events, and incentivize your community with bounties. Announce new and upcoming events using townsquare. Find top-quality hackers and fund them to work with you on a grant.
These are the organizations you own. If you don't see your organization here please be sure that information is public on your GitHub profile. Gitcoin will sync this information for you.
Select the products you are interested in:
Out of the box you will receive Tribes Lite for your organization. Please provide us with a contact email:
Email
Back
Save