OpenRefine / OpenRefine/openrefine.org

Documentation for toString() date format codes is incorrect

Open
#376 6 comments 0 reactions 1 assignee View on GitHub

@tfmorris is already working on this.

Since Nov 22, 2024.

documentation Good First Issue
Dominant language
TypeScript
Stars
161
Forks
142
Avg merge
6h 10m
Merged PRs (30d)
9

Description

value: 2024-01-17T00:00:00Z
value.toString('u')
should return the day number for the current week ( ie 1-7) as indicated in https://openrefine.org/docs/manual/grelfunctions#date-functions

but its returning 2024
ive tried this with a text value and converted it to date, manually specifying the format date text value. ie value.toDate('y/m/d').toString('u') and it still outputs 2024

Contributor guide

No contributing guide indexed for this repository

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.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.