fixes
foaf time is now with local timezone fixed music starting
This commit is contained in:
@@ -55,12 +55,11 @@ public class FoafBase{
|
||||
return origtime;
|
||||
}
|
||||
|
||||
var tz = TimeZone.getDefault();
|
||||
var smf = new SimpleDateFormat("yyyy-MM-dd'T'kk:mm:ss", Locale.getDefault());
|
||||
|
||||
smf.setTimeZone(tz);
|
||||
|
||||
return smf.parse(matcher.group(1)).getTime() / 1000;
|
||||
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss", Locale.US);
|
||||
sdf.setTimeZone(TimeZone.getTimeZone("Europe/Moscow"));
|
||||
Date date = sdf.parse(matcher.group(1));
|
||||
sdf.setTimeZone(TimeZone.getDefault());
|
||||
return sdf.parse(sdf.format(date)).getTime() / 1000;
|
||||
}
|
||||
|
||||
private static String getLink(int i){
|
||||
|
||||
@@ -8,6 +8,7 @@ import static ru.vtosters.lite.hooks.DateHook.getLocale;
|
||||
import static ru.vtosters.lite.utils.Base64Utils.decode;
|
||||
import static ru.vtosters.lite.utils.Globals.getContext;
|
||||
import static ru.vtosters.lite.utils.Globals.getPrefsValue;
|
||||
import static ru.vtosters.lite.utils.Globals.getUserId;
|
||||
import static ru.vtosters.lite.utils.Globals.getUserToken;
|
||||
import static ru.vtosters.lite.utils.Newsfeed.checkCaption;
|
||||
import static ru.vtosters.lite.utils.Newsfeed.checkCopyright;
|
||||
@@ -166,7 +167,7 @@ public class JsonInjectors{
|
||||
var onlineinfo = json.optJSONObject("online_info");
|
||||
var time = getLastSeen(0L, id);
|
||||
|
||||
if (time != 0L && onlineinfo != null && !onlineinfo.optBoolean("is_online")) {
|
||||
if (time != 0L && onlineinfo != null && !onlineinfo.optBoolean("is_online") && id != getUserId()) {
|
||||
json.remove("online_info");
|
||||
|
||||
var online_info = new JSONObject()
|
||||
|
||||
@@ -23,7 +23,6 @@ public class TogglesHook{
|
||||
case AB_GIFTS_FROM_KEYBOARD:
|
||||
case FEATURE_FEED_DEFAULT_LIST_ALWAYS:
|
||||
case EXPERIMENT_NEWS_VIDEO_LAYOUT_TEXT:
|
||||
case FEATURE_MUSIC_AUDIO_SERVICE:
|
||||
case FEATURE_MILKSHAKE_DISCOVER_IN_MENU:
|
||||
case FEATURE_DISCOVER_CATEGORIES:
|
||||
case FEATURE_FAVE_PERF_IMPROVE:
|
||||
|
||||
@@ -90,7 +90,6 @@
|
||||
android:defaultValue="https://vtsf.vknext.net"
|
||||
android:key="ssfscustom"
|
||||
android:title="@string/debug_developer_ssfs_custom" />
|
||||
<com.vtosters.lite.ui.MaterialSectionDividerPreference />
|
||||
</PreferenceCategory>
|
||||
<PreferenceCategory
|
||||
android:key="domains"
|
||||
|
||||
Reference in New Issue
Block a user