Hacktoberfest 2026: the issues maintainers tagged for October, open and beginner-friendly. Browse Hacktoberfest issues

CW-058 · Thai dates in the Buddhist era, everywhere a year is shown

Open
#58 2 comments 0 reactions 0 assignees View on GitHub

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

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

P2 phase-3

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 (formatDateOnly in certificate-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 shows 09/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

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from SuruchBoss/Cwork

All issues in SuruchBoss/Cwork

Similar issues

More TypeScript issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.