We are currently solving the following issue within our repository. Here is the issue text:
--- BEGIN ISSUE ---
Broken date handling in careeropportunity display date
## What kind of an issue is this?

- [x] Bug report
- [ ] Feature request


## What is the expected behaviour?
A careeropportunity should be displayed from the start date.

## What is the current behaviour?
If the start date is in the past, but sufficiently close to the current date, the careeropportunity is not displayed. Setting the start date to an earlier date fixes the problem.

<!-- if this is a bug report -->


## How do you reproduce this problem? 

Set start date to the middle of the night the day before the current day.
Broken date handling in careeropportunity display date
## What kind of an issue is this?

- [x] Bug report
- [ ] Feature request


## What is the expected behaviour?
A careeropportunity should be displayed from the start date.

## What is the current behaviour?
If the start date is in the past, but sufficiently close to the current date, the careeropportunity is not displayed. Setting the start date to an earlier date fixes the problem.

<!-- if this is a bug report -->


## How do you reproduce this problem? 

Set start date to the middle of the night the day before the current day.

--- END ISSUE ---

Below are some code segments, each from a relevant file. One or more of these files may contain bugs.
--- BEGIN FILES ---
Path: `apps/careeropportunity/views.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 
3 from django.shortcuts import render
4 from django.utils import timezone
5 # API v1
6 from rest_framework import mixins, viewsets
7 from rest_framework.pagination import PageNumberPagination
8 from rest_framework.permissions import AllowAny
9 
10 from apps.careeropportunity.models import CareerOpportunity
11 from apps.careeropportunity.serializers import CareerSerializer
12 
13 
14 def index(request, id=None):
15     return render(request, 'careeropportunity/index.html')
16 
17 
18 class HundredItemsPaginator(PageNumberPagination):
19     page_size = 100
20 
21 
22 class CareerViewSet(viewsets.GenericViewSet, mixins.RetrieveModelMixin, mixins.ListModelMixin):
23     """
24     Viewset for Career serializer
25     """
26 
27     queryset = CareerOpportunity.objects.filter(
28         start__lte=timezone.now(),
29         end__gte=timezone.now()
30     ).order_by('-featured', '-start')
31     serializer_class = CareerSerializer
32     permission_classes = (AllowAny,)
33     pagination_class = HundredItemsPaginator
34
```

Path: `apps/careeropportunity/urls.py`
Content:
```
1 # -*- coding: utf-8 -*-
2 
3 from django.conf.urls import url
4 
5 from apps.api.utils import SharedAPIRootRouter
6 from apps.careeropportunity import views
7 
8 urlpatterns = [
9     url(r'^$', views.index, name='careeropportunity_index'),
10     url(r'^(\d+)/$', views.index, name='careeropportunity_details'),
11 ]
12 
13 # API v1
14 router = SharedAPIRootRouter()
15 router.register(r'career', views.CareerViewSet)
16
```
--- END FILES ---

Please first localize the bug based on the issue statement, and then generate a patch according to the `git diff` format fenced by three backticks.

Here is an example:

```diff
diff --git a/examples/server_async.py b/examples/server_async.py
--- a/examples/server_async.py
+++ b/examples/server_async.py
@@ -313,4 +313,4 @@
 
 
 if __name__ == "__main__":
-    asyncio.run(run_async_server("."), debug=True)
+    asyncio.run(run_async_server(), debug=True)
diff --git a/examples/server_sync.py b/examples/server_sync.py
--- a/examples/server_sync.py
+++ b/examples/server_sync.py
@@ -313,5 +313,5 @@
 
 
 if __name__ == "__main__":
-    server = run_sync_server(".")
+    server = run_sync_server()
     server.shutdown()

```

diff --git a/apps/careeropportunity/urls.py b/apps/careeropportunity/urls.py
--- a/apps/careeropportunity/urls.py
+++ b/apps/careeropportunity/urls.py
@@ -12,4 +12,4 @@
 
 # API v1
 router = SharedAPIRootRouter()
-router.register(r'career', views.CareerViewSet)
+router.register(r'career', views.CareerViewSet, base_name='careeropportunity')
diff --git a/apps/careeropportunity/views.py b/apps/careeropportunity/views.py
--- a/apps/careeropportunity/views.py
+++ b/apps/careeropportunity/views.py
@@ -24,10 +24,12 @@
     Viewset for Career serializer
     """
 
-    queryset = CareerOpportunity.objects.filter(
-        start__lte=timezone.now(),
-        end__gte=timezone.now()
-    ).order_by('-featured', '-start')
     serializer_class = CareerSerializer
     permission_classes = (AllowAny,)
     pagination_class = HundredItemsPaginator
+
+    def get_queryset(self, *args, **kwargs):
+        return CareerOpportunity.objects.filter(
+            start__lte=timezone.now(),
+            end__gte=timezone.now()
+        ).order_by('-featured', '-start')

{"golden_diff": "diff --git a/apps/careeropportunity/urls.py b/apps/careeropportunity/urls.py\n--- a/apps/careeropportunity/urls.py\n+++ b/apps/careeropportunity/urls.py\n@@ -12,4 +12,4 @@\n \n # API v1\n router = SharedAPIRootRouter()\n-router.register(r'career', views.CareerViewSet)\n+router.register(r'career', views.CareerViewSet, base_name='careeropportunity')\ndiff --git a/apps/careeropportunity/views.py b/apps/careeropportunity/views.py\n--- a/apps/careeropportunity/views.py\n+++ b/apps/careeropportunity/views.py\n@@ -24,10 +24,12 @@\n     Viewset for Career serializer\n     \"\"\"\n \n-    queryset = CareerOpportunity.objects.filter(\n-        start__lte=timezone.now(),\n-        end__gte=timezone.now()\n-    ).order_by('-featured', '-start')\n     serializer_class = CareerSerializer\n     permission_classes = (AllowAny,)\n     pagination_class = HundredItemsPaginator\n+\n+    def get_queryset(self, *args, **kwargs):\n+        return CareerOpportunity.objects.filter(\n+            start__lte=timezone.now(),\n+            end__gte=timezone.now()\n+        ).order_by('-featured', '-start')\n", "issue": "Broken date handling in careeropportunity display date\n## What kind of an issue is this?\r\n\r\n- [x] Bug report\r\n- [ ] Feature request\r\n\r\n\r\n## What is the expected behaviour?\r\nA careeropportunity should be displayed from the start date.\r\n\r\n## What is the current behaviour?\r\nIf the start date is in the past, but sufficiently close to the current date, the careeropportunity is not displayed. Setting the start date to an earlier date fixes the problem.\r\n\r\n<!-- if this is a bug report -->\r\n\r\n\r\n## How do you reproduce this problem? \r\n\r\nSet start date to the middle of the night the day before the current day.\nBroken date handling in careeropportunity display date\n## What kind of an issue is this?\r\n\r\n- [x] Bug report\r\n- [ ] Feature request\r\n\r\n\r\n## What is the expected behaviour?\r\nA careeropportunity should be displayed from the start date.\r\n\r\n## What is the current behaviour?\r\nIf the start date is in the past, but sufficiently close to the current date, the careeropportunity is not displayed. Setting the start date to an earlier date fixes the problem.\r\n\r\n<!-- if this is a bug report -->\r\n\r\n\r\n## How do you reproduce this problem? \r\n\r\nSet start date to the middle of the night the day before the current day.\n", "before_files": [{"content": "# -*- coding: utf-8 -*-\n\nfrom django.shortcuts import render\nfrom django.utils import timezone\n# API v1\nfrom rest_framework import mixins, viewsets\nfrom rest_framework.pagination import PageNumberPagination\nfrom rest_framework.permissions import AllowAny\n\nfrom apps.careeropportunity.models import CareerOpportunity\nfrom apps.careeropportunity.serializers import CareerSerializer\n\n\ndef index(request, id=None):\n    return render(request, 'careeropportunity/index.html')\n\n\nclass HundredItemsPaginator(PageNumberPagination):\n    page_size = 100\n\n\nclass CareerViewSet(viewsets.GenericViewSet, mixins.RetrieveModelMixin, mixins.ListModelMixin):\n    \"\"\"\n    Viewset for Career serializer\n    \"\"\"\n\n    queryset = CareerOpportunity.objects.filter(\n        start__lte=timezone.now(),\n        end__gte=timezone.now()\n    ).order_by('-featured', '-start')\n    serializer_class = CareerSerializer\n    permission_classes = (AllowAny,)\n    pagination_class = HundredItemsPaginator\n", "path": "apps/careeropportunity/views.py"}, {"content": "# -*- coding: utf-8 -*-\n\nfrom django.conf.urls import url\n\nfrom apps.api.utils import SharedAPIRootRouter\nfrom apps.careeropportunity import views\n\nurlpatterns = [\n    url(r'^$', views.index, name='careeropportunity_index'),\n    url(r'^(\\d+)/$', views.index, name='careeropportunity_details'),\n]\n\n# API v1\nrouter = SharedAPIRootRouter()\nrouter.register(r'career', views.CareerViewSet)\n", "path": "apps/careeropportunity/urls.py"}], "after_files": [{"content": "# -*- coding: utf-8 -*-\n\nfrom django.shortcuts import render\nfrom django.utils import timezone\n# API v1\nfrom rest_framework import mixins, viewsets\nfrom rest_framework.pagination import PageNumberPagination\nfrom rest_framework.permissions import AllowAny\n\nfrom apps.careeropportunity.models import CareerOpportunity\nfrom apps.careeropportunity.serializers import CareerSerializer\n\n\ndef index(request, id=None):\n    return render(request, 'careeropportunity/index.html')\n\n\nclass HundredItemsPaginator(PageNumberPagination):\n    page_size = 100\n\n\nclass CareerViewSet(viewsets.GenericViewSet, mixins.RetrieveModelMixin, mixins.ListModelMixin):\n    \"\"\"\n    Viewset for Career serializer\n    \"\"\"\n\n    serializer_class = CareerSerializer\n    permission_classes = (AllowAny,)\n    pagination_class = HundredItemsPaginator\n\n    def get_queryset(self, *args, **kwargs):\n        return CareerOpportunity.objects.filter(\n            start__lte=timezone.now(),\n            end__gte=timezone.now()\n        ).order_by('-featured', '-start')\n", "path": "apps/careeropportunity/views.py"}, {"content": "# -*- coding: utf-8 -*-\n\nfrom django.conf.urls import url\n\nfrom apps.api.utils import SharedAPIRootRouter\nfrom apps.careeropportunity import views\n\nurlpatterns = [\n    url(r'^$', views.index, name='careeropportunity_index'),\n    url(r'^(\\d+)/$', views.index, name='careeropportunity_details'),\n]\n\n# API v1\nrouter = SharedAPIRootRouter()\nrouter.register(r'career', views.CareerViewSet, base_name='careeropportunity')\n", "path": "apps/careeropportunity/urls.py"}]}