Time tracking and /spend quick action
Summary
When using the /spend
quick action, some values of times give astonishing values, for examples, /spend 1h30
does not register 1.5 hour but 31.
Steps to reproduce
- type
/spend 1h30m
, it registers 1.5 hour - type
/spend 1h30
, it registers 31 hours.
What is the current bug behavior?
In /spend 1h30
, 1h30
is parsed as 1h 30h
What is the expected correct behavior?
It should be parsed as 1h 30mn
Output of checks
This bug happens on GitLab.com
Results of GitLab environment info
Expand for output related to GitLab environment info
System information System: Debian 9.13 Current User: git Using RVM: no Ruby Version: 2.7.2p137 Gem Version: 3.1.4 Bundler Version:2.1.4 Rake Version: 13.0.3 Redis Version: 6.0.14 Git Version: 2.32.0 Sidekiq Version:5.2.9 Go Version: unknown GitLab information Version: 14.1.2 Revision: 8c67b499146 Directory: /opt/gitlab/embedded/service/gitlab-rails DB Adapter: PostgreSQL DB Version: 12.6 URL: https://git.ovea.com HTTP Clone URL: https://git.ovea.com/some-group/some-project.git SSH Clone URL: git@git.ovea.com:some-group/some-project.git Using LDAP: no Using Omniauth: yes Omniauth Providers: GitLab Shell Version: 13.19.1 Repository storage paths: - default: /var/opt/gitlab/git-data/repositories GitLab Shell path: /opt/gitlab/embedded/service/gitlab-shell Git: /opt/gitlab/embedded/bin/git