feat: add last updated timestamp to WeatherData component

This commit is contained in:
2025-08-03 22:24:17 +02:00
parent f70629fa55
commit 0361a743ef
3 changed files with 31 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
import React from "react";
import { Sunrise, Sunset } from "lucide-react";
import { getDateTime } from "../utils/utils";
const WeatherData: React.FC = () => {
const weatherRaw = localStorage.getItem("weather");
@@ -75,6 +76,11 @@ const WeatherData: React.FC = () => {
: "--:--"}
</span>
</div>
<div className="flex items-center gap-3">
<span className="text-base text-gray-600 italic font-semibold">
Last updated: {getDateTime()}
</span>
</div>
</div>
</div>
</div>