<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-GB">
	<id>https://wiki.socialstack.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2A02%3AC7C%3AC43F%3AC600%3AD0C0%3A6384%3A1013%3AB64</id>
	<title>SocialStack - User contributions [en-gb]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.socialstack.dev/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=2A02%3AC7C%3AC43F%3AC600%3AD0C0%3A6384%3A1013%3AB64"/>
	<link rel="alternate" type="text/html" href="https://wiki.socialstack.dev/index.php?title=Special:Contributions/2A02:C7C:C43F:C600:D0C0:6384:1013:B64"/>
	<updated>2026-11-07T16:44:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.36.2</generator>
	<entry>
		<id>https://wiki.socialstack.dev/index.php?title=Dates_and_times&amp;diff=591</id>
		<title>Dates and times</title>
		<link rel="alternate" type="text/html" href="https://wiki.socialstack.dev/index.php?title=Dates_and_times&amp;diff=591"/>
		<updated>2023-11-15T13:31:40Z</updated>

		<summary type="html">&lt;p&gt;2A02:C7C:C43F:C600:D0C0:6384:1013:B64: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Socialstack API&amp;#039;s internally use UTC dates for essentially everything to simplify timezone behaviour. This is made more explicit by putting Utc on the end of all entity field names. When the API serialises a date field, it serialises it as a UTC timestamp to eliminate ambiguity and simplify reading of the dates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Working with dates on the UI =&lt;br /&gt;
&lt;br /&gt;
The Time component is the quickest way to display dates. By default it will display as a &amp;quot;time ago&amp;quot; view:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;jsx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import Time from &amp;#039;UI/Time&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Time date={thatDateNumberThing} /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can display absolute dates like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;jsx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import Time from &amp;#039;UI/Time&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Time absolute withDate date={thatDateNumberThing} /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
If you would just like a raw JS date value, then the dateTools set of functions can help. They&amp;#039;re used internally by UI/Time:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;jsx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import {isoConvert} from &amp;#039;UI/Functions/DateTools&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
var jsDateUtc = isoConvert(entity.createdUtc);&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>2A02:C7C:C43F:C600:D0C0:6384:1013:B64</name></author>
	</entry>
	<entry>
		<id>https://wiki.socialstack.dev/index.php?title=Dates_and_times&amp;diff=590</id>
		<title>Dates and times</title>
		<link rel="alternate" type="text/html" href="https://wiki.socialstack.dev/index.php?title=Dates_and_times&amp;diff=590"/>
		<updated>2023-11-15T13:29:59Z</updated>

		<summary type="html">&lt;p&gt;2A02:C7C:C43F:C600:D0C0:6384:1013:B64: Created page with &amp;quot;Socialstack API&amp;#039;s internally use UTC dates for essentially everything to simplify timezone behaviour. This is made more explicit by putting Utc on the end of all entity field...&amp;quot;&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Socialstack API&amp;#039;s internally use UTC dates for essentially everything to simplify timezone behaviour. This is made more explicit by putting Utc on the end of all entity field names. When the API serialises a date field, it serialises it as a UTC timestamp to eliminate ambiguity and simplify reading of the dates.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= Working with dates on the UI =&lt;br /&gt;
&lt;br /&gt;
The Time component is the quickest way to display dates. By default it will display as a &amp;quot;time ago&amp;quot; view:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;jsx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import Time from &amp;#039;UI/Time&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Time date={thatDateNumberThing} /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;br /&gt;
&lt;br /&gt;
You can display absolute dates like so:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;syntaxhighlight lang=&amp;quot;jsx&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
import Time from &amp;#039;UI/Time&amp;#039;;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;Time absolute withDate date={thatDateNumberThing} /&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/syntaxhighlight&amp;gt;&lt;/div&gt;</summary>
		<author><name>2A02:C7C:C43F:C600:D0C0:6384:1013:B64</name></author>
	</entry>
</feed>