CW-058 · Thai dates in the Buddhist era, everywhere a year is shown
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 45/100
- Issue type
- Feature
- Clarity
- Mostly clear
- Activity status
- Active
- Tech stack
- dart, flutter, typescript
- Domain
- backend, internationalization, localization, mobile, web-dev
Research direction
Start by tracing date formatting in web/src/lib/format.ts, the web/src/ date fields, mobile/lib/core/utils/formatters.dart, and formatDateOnly in certificate-renderer.ts. Inventory the eleven date inputs and generated-document paths before checking the existing localization coverage. Done means Thai displays Buddhist-era dates and Thai document wording across the listed surfaces, while stored/API ISO dates, English, and tax filing formats remain unchanged.
Written by the indexing model from the issue text.
Description
Priority P2 · Area web · mobile · documents · Estimate M · Phase 3
In Thai, the console and the app write today as "28 ก.ย. 2026": Thai month, Gregorian year. Thai offices count years in พ.ศ., and a competitor (PeopleFlow, a Thai per-head HR service) opens its landing page with exactly this. Worse, some places are not localised at all:
- The employment certificate PDF prints the hire date as
2024-01-15(formatDateOnlyincertificate-renderer.ts). That is on a document an employee hands to a bank. - Date input fields in the console are the browser's own (
type="date", eleven of them), so they show whatever the browser's locale is. The product film shows09/01/2026, month first.
Only what is displayed changes. Stored values and the API stay ISO dates in the Gregorian calendar, and English stays Gregorian.
Acceptance
- In Thai, every year shown in the console, the app and generated PDFs is Buddhist era: 28 ก.ย. 2569.
- Date fields in Thai show and accept a Buddhist-era date, day first. Typing or picking 1 ต.ค. 2569 stores 2026-10-01.
- Certificates and payslips write dates in words the way Thai documents do: "15 มกราคม 2567".
- A test catches a Gregorian year on a Thai screen, so the next new screen cannot bring it back.
- English is unchanged.
- The tax filing formats (CW-045 to CW-048) follow their own published layouts and are out of scope here.
Files web/src/lib/format.ts, web/src/ date fields, mobile/lib/core/utils/formatters.dart, backend/src/modules/documents/
Tracked in docs/backlog.md.
- Dominant language
- TypeScript
- Stars
- 0
- Forks
- 0
- Avg merge
- 2h 56m
- Merged PRs (30d)
- 4
Getting set up
- Ships a Dockerfile or Docker Compose file
- Has a pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from SuruchBoss/Cwork
-
documentation good first issue P3 phase-E
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
SuruchBoss/Cwork#50 ·
-
good first issue mobile P2
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
SuruchBoss/Cwork#11 ·
-
documents P0 payroll
Difficulty 4/5 3-5 days Newbie friendliness 54/100
SuruchBoss/Cwork#74 · 1 comment ·
-
P0 payroll
Difficulty 4/5 3-5 days Newbie friendliness 55/100
SuruchBoss/Cwork#73 · 1 comment ·
-
P0 payroll
Difficulty 5/5 Over a week Newbie friendliness 38/100
SuruchBoss/Cwork#72 · 1 comment ·
All issues in SuruchBoss/Cwork
Similar issues
-
Mend: dependency security vulnerability untriaged
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
opensearch-project/security-dashboards-plugin#2545 ·
Maintainers usually reply within 1 day
-
Add: Dream TR SDOpencheck:passed streams:add
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
Maintainers usually reply within 1 day
-
doctor integrity sample scans soft-deleted pages on Postgres (batch path has no deleted_at filter)Open
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
Maintainers usually reply within 1 day
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
SocialGouv/egapro#4672 · 1 comment ·
Maintainers usually reply within 2 days
-
area:agents area:tui bug
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
anthropics/claude-code#98358 ·
Maintainers usually reply within 1 day