<feed xmlns='http://www.w3.org/2005/Atom'>
<title>eglantine-cirakg/src/common/time_zone.cpp, branch nx2</title>
<subtitle>Mirror of github.com/cira0100/Eglantine-public nx2, a fork of Djihads80/Eglantine.</subtitle>
<id>https://git.cirakg.xyz/eglantine-cirakg/atom?h=nx2</id>
<link rel='self' href='https://git.cirakg.xyz/eglantine-cirakg/atom?h=nx2'/>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/'/>
<updated>2026-03-12T17:29:15+00:00</updated>
<entry>
<title>[common/logging] Simplify logging logic and fix issues when logging before system is created (#3688)</title>
<updated>2026-03-12T17:29:15+00:00</updated>
<author>
<name>lizzie</name>
<email>lizzie@eden-emu.dev</email>
</author>
<published>2026-03-12T17:29:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=395613b01f918b559f0a3b1718c78f81987c49d4'/>
<id>urn:sha1:395613b01f918b559f0a3b1718c78f81987c49d4</id>
<content type='text'>
- our logging code was bigger than spdlog itself, why???? just keep it simple
- fix issues when logging before logging system is even started
- removes the "initialized logging twice" issue
- removes uneeded indirection in file logging
- uses direct formatting instead of jumping hoopla-around the fmt::format() ressult
- code duplication and dead code removal as usual

I did explore dup2() but I think it's not worth the hassle
I did try `fwopen()` but it's better if things are just kept as-is.

there is a lot of noise because I removed a bunch of redundant files on logging and just put everything in one file

now normally this wouldn't be a good idea, however consider: the complexity of logging; it's less than 500 lines... does it really need a whole subsystem?!?!?! ITS JUST LOGGING

Signed-off-by: lizzie &lt;lizzie@eden-emu.dev&gt;
Reviewed-on: https://git.eden-emu.dev/eden-emu/eden/pulls/3688
Reviewed-by: crueter &lt;crueter@eden-emu.dev&gt;
Reviewed-by: DraVee &lt;chimera@dravee.dev&gt;
Reviewed-by: CamilleLaVey &lt;camillelavey99@gmail.com&gt;
Co-authored-by: lizzie &lt;lizzie@eden-emu.dev&gt;
Co-committed-by: lizzie &lt;lizzie@eden-emu.dev&gt;
</content>
</entry>
<entry>
<title>Rework time service to fix time passing offline.</title>
<updated>2024-01-24T04:26:55+00:00</updated>
<author>
<name>Kelebek1</name>
<email>eeeedddccc@hotmail.co.uk</email>
</author>
<published>2023-10-29T13:50:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=52c35521bdd8fc66f95ba0c7fc92bd21e1511582'/>
<id>urn:sha1:52c35521bdd8fc66f95ba0c7fc92bd21e1511582</id>
<content type='text'>
</content>
</entry>
<entry>
<title>time_zone: Clean up includes</title>
<updated>2023-07-12T07:03:03+00:00</updated>
<author>
<name>lat9nq</name>
<email>22451773+lat9nq@users.noreply.github.com</email>
</author>
<published>2023-07-12T07:03:03+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=25b800e26c71dc1fe051bc0c016fec096ccf4648'/>
<id>urn:sha1:25b800e26c71dc1fe051bc0c016fec096ccf4648</id>
<content type='text'>
</content>
</entry>
<entry>
<title>time_zone: Swap subtraction order</title>
<updated>2023-07-12T07:02:45+00:00</updated>
<author>
<name>lat9nq</name>
<email>22451773+lat9nq@users.noreply.github.com</email>
</author>
<published>2023-07-12T07:02:45+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=0331d580e21f5f4b949254eaa174799abdd6c01a'/>
<id>urn:sha1:0331d580e21f5f4b949254eaa174799abdd6c01a</id>
<content type='text'>
</content>
</entry>
<entry>
<title>time_zone: Account for leap years</title>
<updated>2023-07-12T06:34:02+00:00</updated>
<author>
<name>lat9nq</name>
<email>22451773+lat9nq@users.noreply.github.com</email>
</author>
<published>2023-07-12T06:34:02+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=9fde7a84ea395660c29b510f4e8cb4ff9d92922f'/>
<id>urn:sha1:9fde7a84ea395660c29b510f4e8cb4ff9d92922f</id>
<content type='text'>
Protects against invalid hour offsets during transitions to years
following leap years.
</content>
</entry>
<entry>
<title>time_zone: Remove string ops for determing zone</title>
<updated>2023-07-10T21:51:34+00:00</updated>
<author>
<name>lat9nq</name>
<email>22451773+lat9nq@users.noreply.github.com</email>
</author>
<published>2023-07-10T21:51:34+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=efeb79f380934b58b8d0f27167c5682e77efb41f'/>
<id>urn:sha1:efeb79f380934b58b8d0f27167c5682e77efb41f</id>
<content type='text'>
MinGW's strftime implementation does not work and cannot be used to
determine the time zone. Besides that, the string operations are
actually unnecessary since we can get the offset from
std::localtime.

Compare localtime to gmtime to find the zone offset on all platforms.
</content>
</entry>
<entry>
<title>time_zone: Handle offset time zones</title>
<updated>2023-06-05T19:15:23+00:00</updated>
<author>
<name>lat9nq</name>
<email>22451773+lat9nq@users.noreply.github.com</email>
</author>
<published>2023-06-03T21:06:43+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=5ab84435dc75965837360dea2a14ae1e3e40c6a7'/>
<id>urn:sha1:5ab84435dc75965837360dea2a14ae1e3e40c6a7</id>
<content type='text'>
time_zone: Remove maybe_unused

time_zone: Use s64 storages

time_zone: Catch by reference
</content>
</entry>
<entry>
<title>common: Move system time zone string detection</title>
<updated>2023-06-05T19:15:11+00:00</updated>
<author>
<name>lat9nq</name>
<email>22451773+lat9nq@users.noreply.github.com</email>
</author>
<published>2023-05-23T22:32:28+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=2c92d48491544dd689d3b948148530ab0ef690d2'/>
<id>urn:sha1:2c92d48491544dd689d3b948148530ab0ef690d2</id>
<content type='text'>
Moves it from Settings to Common::TimeZone, since this algorithm doesn't
depend on the setting. It also lets us use it in other libraries.

common: Various fixes

time_zone: Don't double up the std::abs

Too many absolute values were causing mirrored time zones to resolve
as the same.
</content>
</entry>
<entry>
<title>general: Convert source file copyright comments over to SPDX</title>
<updated>2022-04-23T09:55:32+00:00</updated>
<author>
<name>Morph</name>
<email>39850852+Morph1984@users.noreply.github.com</email>
</author>
<published>2022-04-23T08:59:50+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=2b87305d319f0bd04da36fb96314934f37b12637'/>
<id>urn:sha1:2b87305d319f0bd04da36fb96314934f37b12637</id>
<content type='text'>
This formats all copyright comments according to SPDX formatting guidelines.
Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
</content>
</entry>
<entry>
<title>Revert "common/time_zone: Simplify GetOsTimeZoneOffset()"</title>
<updated>2020-08-19T22:27:31+00:00</updated>
<author>
<name>bunnei</name>
<email>bunneidev@gmail.com</email>
</author>
<published>2020-08-19T22:27:31+00:00</published>
<link rel='alternate' type='text/html' href='https://git.cirakg.xyz/eglantine-cirakg/commit/?id=55d11a0bfdf537bd4e5c5107d7c61fcc708a74df'/>
<id>urn:sha1:55d11a0bfdf537bd4e5c5107d7c61fcc708a74df</id>
<content type='text'>
</content>
</entry>
</feed>
