mirror of
https://github.com/oxen-io/session-android.git
synced 2025-12-29 09:06:37 +00:00
Add additional LinkPreviewUtil unit tests.
Also updated the date format -- funnily enough Android will work with either Z or X in the format, but the test JVM will fail if it doesn't use X. X is definitely the correct thing to use based on the Javadoc, I think Android's implementation is just a little more lenient.
This commit is contained in:
@@ -200,7 +200,7 @@ public final class LinkPreviewUtil {
|
||||
}
|
||||
|
||||
public long getDate() {
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssZ", Locale.getDefault());
|
||||
SimpleDateFormat format = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ssX", Locale.getDefault());
|
||||
|
||||
return Stream.of(values.get(KEY_PUBLISHED_TIME_1),
|
||||
values.get(KEY_PUBLISHED_TIME_2),
|
||||
|
||||
Reference in New Issue
Block a user