[bisq-network/bisq] The timezone and time standard (#2971)

niyid notifications at github.com
Wed Jul 17 20:24:03 UTC 2019


Ah.

I believe you are suggesting that in the code below:


```
    public String formatDateTime(Date date, boolean useLocaleAndLocalTimezone) {
        Locale locale = useLocaleAndLocalTimezone ? getLocale() : Locale.US;
        DateFormat dateInstance = DateFormat.getDateInstance(DateFormat.DEFAULT, locale);
        DateFormat timeInstance = DateFormat.getTimeInstance(DateFormat.DEFAULT, locale);
        if (!useLocaleAndLocalTimezone) {
            dateInstance.setTimeZone(TimeZone.getTimeZone("UTC"));
            timeInstance.setTimeZone(TimeZone.getTimeZone("UTC"));
        }
        return formatDateTime(date, dateInstance, timeInstance);
    }
```

The flag `useLocaleAndLocalTimezone` should be inverted. Right now, the time is UTC when that flag is false and of course uses the default locale time if true.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/bisq-network/bisq/issues/2971#issuecomment-512554159
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.bisq.network/pipermail/bisq-github/attachments/20190717/2306ba20/attachment.html>


More information about the bisq-github mailing list