@sarimarcus/content-sites-tourism 0.52.1 → 0.53.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/CHANGELOG.md CHANGED
@@ -2,6 +2,14 @@
2
2
 
3
3
  All packages in the platform release in lockstep; entries are per release version.
4
4
 
5
+ ## 0.53.1 (2026-10-29)
6
+
7
+ - Lockstep release, no change (SLA-3604).
8
+
9
+ ## 0.53.0 (2026-10-29)
10
+
11
+ - `ArticleCardGrid`: card dates print the day only, in the site's `timeZone` (SLA-3590).
12
+
5
13
  ## 0.52.1 (2026-10-28)
6
14
 
7
15
  - Fixed a layout shift on the neighbourhood hub page: the filter chip bar now keeps its space (`invisible`) until `hubFilter` reveals it, instead of starting `hidden` and pushing the list down about 80 px when the script ran (CLS 0.045 to 0). Without JavaScript the bar stays invisible and its space stays reserved (SLA-3566).
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@sarimarcus/content-sites-tourism",
3
- "version": "0.52.1",
3
+ "version": "0.53.1",
4
4
  "description": "City-tourism vertical: city-entity components, pages templates and utilities for the tourism sites.",
5
5
  "type": "module",
6
6
  "license": "MIT",
@@ -38,7 +38,7 @@
38
38
  "peerDependencies": {
39
39
  "astro": "^7.0.6",
40
40
  "tailwindcss": "^4.1.18",
41
- "@sarimarcus/content-sites-core": "0.52.1",
42
- "@sarimarcus/content-sites-ui": "0.52.1"
41
+ "@sarimarcus/content-sites-core": "0.53.1",
42
+ "@sarimarcus/content-sites-ui": "0.53.1"
43
43
  }
44
44
  }
@@ -6,6 +6,7 @@
6
6
  import type { ImageMetadata } from 'astro';
7
7
  import { ArticleGrid } from '@sarimarcus/content-sites-ui/editorial';
8
8
  import { isUpdatedAfterPublication } from '@sarimarcus/content-sites-core/articles';
9
+ import { formatDisplayDay } from '@sarimarcus/content-sites-core/dates';
9
10
  import { routePath, url, type SiteRoutes } from '@sarimarcus/content-sites-core/url';
10
11
  import { LABELS } from '../internal/labels';
11
12
 
@@ -36,15 +37,6 @@ interface Props {
36
37
 
37
38
  const { articles, articleImages, timeZone = 'Europe/Madrid', readLabel = LABELS.articleCardGrid.readLabel, updatedLabel = LABELS.articleCardGrid.updatedLabel, routes, class: className = 'grid gap-6 sm:grid-cols-2 lg:grid-cols-3' } = Astro.props;
38
39
 
39
- function formatCardDate(dateStr: string | undefined): string {
40
- if (!dateStr) return '';
41
- // Articles carry a real HH:MM, so show it here too instead of just the day.
42
- const date = new Date(dateStr);
43
- return dateStr.includes('T')
44
- ? date.toLocaleString('en-GB', { year: 'numeric', month: 'long', day: 'numeric', hour: '2-digit', minute: '2-digit', timeZone })
45
- : date.toLocaleDateString('en-GB', { year: 'numeric', month: 'long', day: 'numeric', timeZone });
46
- }
47
-
48
40
  const items = articles.map(({ data: a }) => {
49
41
  const updated = isUpdatedAfterPublication(a);
50
42
  const dateTime = (updated ? a.dateModified : a.datePublished) ?? '';
@@ -56,7 +48,7 @@ const items = articles.map(({ data: a }) => {
56
48
  image: articleImages[a.slug],
57
49
  imageAlt: a.imageAlt,
58
50
  dateTime,
59
- dateLabel: formatCardDate(dateTime),
51
+ dateLabel: formatDisplayDay(dateTime, 'en-GB', timeZone),
60
52
  updated,
61
53
  };
62
54
  });