Skip to content
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

The approximation of saving clock in / clock out time in database #143

Open
prosenkiewicz opened this issue Apr 17, 2018 · 2 comments
Open

Comments

@prosenkiewicz
Copy link
Contributor

Hi,
the time is saved with big approximation, so when you click multiple times during the day button to clock in and clock out, you get a difference between real time and calculated time around a few minutes.

I noticed that with simple js timer, when clock out timer shows e.g 00:05:30 but after page refresh it shows 00:05:20.

Regards.

@dhanasingh
Copy link
Owner

ok, how many times did you click clock in and clock out during that 00:05:30 period ?
Can you get those clock in and clock out times from the clock in / our summary page ?

@prosenkiewicz
Copy link
Contributor Author

prosenkiewicz commented Apr 20, 2018

the 00:05:30 was just an example. But this is the dump of our table wk_attendances
dump.txt

and this is the sql select statment we used to compare real time and calculated time.
select realtime, calctime, timestampdiff(SECOND, realtime, calctime) FROM (select from_unixtime(SUM(TIMESTAMPDIFF(SECOND, start_time, end_time))) as realtime, from_unixtime(sum(hours)*3600) as calctime from wk_attendances where user_id=1 and start_time like '2018-04-17 %') as t1;

Would also like to ask if there are chances that I get response for my pull request with polish translation, would appreciate it :)

Kind regards.

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

No branches or pull requests

2 participants