Giter Site home page Giter Site logo

storeconnect-timesync-server's People

Contributors

adrienjonquet avatar mgasztold avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar

storeconnect-timesync-server's Issues

Issue with offset if client date is greater than server

Hello,
I'm using the Android wrapper for a test app.

It seems that there is an issue in the set_target method in server_date.cpp. If my smartphone date is earlier than the server the offset is correctly computed, but if it is greater the offset always stays at 0.
I think the delta should be in absolute value when comparing it to amortization_threshold.

Android wrapper crashing on 32bits devices

Hello,
I hit trouble while working with the android wrapper on armeabi/armeabi-v7a devices.
Works perfectly fine on arm64 devices, but on 32bits devices it crashes in server_date.cpp:98 at :
long long server_date = std::stol(server_date_s);

I have the following error in Android studio :
A/libc: /Volumes/Android/buildbot/src/android/ndk-release-r17/external/libcxx/../../external/libcxxabi/src/abort_message.cpp:73: abort_message: assertion "terminating with uncaught exception of type std::out_of_range: stol: out of range" failed

I've replaced it with std::stoll and it seems to work, so the issue might be with std::stol messing around with 32bit long limit.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.