D
D
Dima Polyukhovich2020-08-19 17:08:28
Android
Dima Polyukhovich, 2020-08-19 17:08:28

Why is the Google Play leaderboard score displayed in the wrong format?

I have a small but annoying problem with the Google Play leaderboard in an Android game and I can't figure out how to fix it.
The score in the table should be shown in time format (like this: "1:5:23"), but it is shown as a fractional number (like this: "13.6").

The time format is specified in the table settings in the developer console.
5f3d3129c29ed130835340.png

In the code, I save to the long table in the form of milliseconds.

Social.ReportScore((long)MainController.bestScore.TotalMilliseconds, "CgkI-6CcmbMMEAIQAA", (bool success) => {
    scoreSavedInGPS = success;
});


But the table itself does not show time, but a fractional number.
5f3d3138ea7dd972973284.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
#
#, 2020-08-19
@5kuper

The score in the table should be shown in time format , but it is shown as a fractional number ( seconds.milliseconds ).

what is the problem???
ps from comments:
milliseconds are shown like this - separated by commas, this is the standard
, well, or somewhere a period, national features are possible
pps https://ru.wikipedia.org/wiki/ISO_8601
there is a sign. it has the last line

D
Dima Polyukhovich, 2020-08-19
@5kuper

Before that, I checked the account with a time of less than a minute. Now I checked the account for more than a minute and it looks like this: "minutes: seconds, milliseconds". It turns out a little strange, but tolerable. Can someone tell me how to do it normally, so I will not close the question yet.
5f3d3dcc23d9b539132392.jpeg

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question