Skip to content

[Bitbucket] keep only 6 digits when using %f in datetime format #1511

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Mar 24, 2025

Conversation

zffocussss
Copy link
Contributor

@zffocussss zffocussss commented Mar 19, 2025

The current created_on and completed_on field of pipeline state is like "2025-03-19T09:55:18.544325754Z" which can not be parsed by datetime.strptime directly

value = datetime.strptime(value_str, self.CONF_TIMEFORMAT)

@zffocussss
Copy link
Contributor Author

TypeError: strptime() takes no keyword arguments

value = datetime.strptime(value_str, "%Y-%m-%dT%H:%M:%S.%fZ", tzinfo="UTC")

@zffocussss
Copy link
Contributor Author

Can someone have a review and approve it?

@zffocussss zffocussss changed the title keep only 6 digits when using %f in datetime format [Bitbucket] keep only 6 digits when using %f in datetime format Mar 20, 2025
@zffocussss
Copy link
Contributor Author

@gonchik Can you please have a look?

Copy link

codecov bot commented Mar 24, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 34.09%. Comparing base (c2f3382) to head (8b6d3ea).
Report is 45 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1511      +/-   ##
==========================================
+ Coverage   34.06%   34.09%   +0.02%     
==========================================
  Files          46       46              
  Lines        8832     8832              
  Branches     1352     1350       -2     
==========================================
+ Hits         3009     3011       +2     
+ Misses       5698     5696       -2     
  Partials      125      125              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@zffocussss
Copy link
Contributor Author

@gonchik Can you please take a look and approve it?

@gonchik gonchik merged commit d32f3a2 into atlassian-api:master Mar 24, 2025
13 checks passed
@zffocussss
Copy link
Contributor Author

zffocussss commented Mar 25, 2025

@gonchik thanks for your merge,when will be the next release including this change available in the pypi?

@gonchik
Copy link
Member

gonchik commented Mar 25, 2025

@zffocussss yes,
but I am planning a bit release which contains a drop python2 releases

@zffocussss
Copy link
Contributor Author

@zffocussss yes, but I am planning a bit release which contains a drop python2 releases

it is working now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants