Changeset 11288 in josm for trunk/src/oauth


Ignore:
Timestamp:
2016-11-20T17:33:33+01:00 (3 years ago)
Author:
simon04
Message:

see #13376 - Use TimeUnit instead of combinations of 1000/60/60/24

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/oauth/signpost/AbstractOAuthConsumer.java

    r10831 r11288  
    1818import java.io.InputStream;
    1919import java.util.Random;
     20import java.util.concurrent.TimeUnit;
    2021
    2122import oauth.signpost.basic.UrlStringRequestAdapter;
     
    267268
    268269    protected String generateTimestamp() {
    269         return Long.toString(System.currentTimeMillis() / 1000L);
     270        return Long.toString(System.currentTimeMillis() / TimeUnit.SECONDS.toMillis(1));
    270271    }
    271272
Note: See TracChangeset for help on using the changeset viewer.