arrow-py / arrow-py/arrow

format XSSS outputs too many digits and a dot

Open
#933 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Python
Stars
9.1k
Forks
784
PR merge metrics
No merged PRs in 30d

Description

## Issue Description

New release changed the behaviour of `.format('XSSS')`, for example:

on 0.17.0 `arrow.utcnow().format('XSSS')` yields `'1614555372217'`

on 1.0.2 it yields `'1614556907.369226369'`

## System Info

- 🖥 **OS name and version**: macOS 10.15.7 (visible also on ubutnu and windows)
- 🐍 **Python version**: 3.7.10
- 🏹 **Arrow version**: 1.0.2

Contributor guide

No contributing guide indexed for this repository

Research direction

Start at the `.format('XSSS')` entry point and reproduce the reported outputs on the affected versions. Trace how this token is formatted, then verify that the result uses the intended millisecond value without a decimal point or excess digits.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
backend
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.