[gnome-games/wip/exalm/metadata: 20/21] dummy-release-date: Return null
- From: Alexander Mikhaylenko <alexm src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-games/wip/exalm/metadata: 20/21] dummy-release-date: Return null
- Date: Mon, 8 Oct 2018 21:43:29 +0000 (UTC)
commit d38820fcb068cd4682785e617ef3fd39bf41a480
Author: Alexander Mikhaylenko <exalm7659 gmail com>
Date: Tue Oct 9 02:37:30 2018 +0500
dummy-release-date: Return null
While returning null can be problematic, it's better than returning bogus
date that cannot be easily detected in UI.
src/dummy/dummy-release-date.vala | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/src/dummy/dummy-release-date.vala b/src/dummy/dummy-release-date.vala
index 895e6842..2762e39b 100644
--- a/src/dummy/dummy-release-date.vala
+++ b/src/dummy/dummy-release-date.vala
@@ -2,6 +2,6 @@
public class Games.DummyReleaseDate : Object, ReleaseDate {
public DateTime get_release_date () {
- return new DateTime.utc (1970, 1, 1, 0, 0, 0);
+ return null;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]