Czemu #diffle odświeża sie o 3 rano a nie o polnocy? @Deykun ??
Cybulion userbar
def

Pewnie strefa czasowa nie zostala uwzgledniowa

Deykun

@Cybulion @def

Mogę ustalić UTC w JS dla każdego, ale ustalenie aktualnej różnicy do Polski to trudna rzecz więc używam UTC (a chcę żeby nawet jak ktoś wejdzie w Chinach na chińskim komputerze miał ten moment w którym wchodzi nowe słowo). Ta 3:00 w nocy w sumie ok pasuje dla Polski.


Z ciekawostek.

UTC is not the UK's timezone. This is a common misunderstanding. UTC does not have a timezone and is standard. UK is same as UTC in winter and is UTC+1 in summer. UK's timezone is either British Standard Time or British Summer Time (both abbreviated with BST... just to add to the confusion!)


It is now common knowledge that in 1995 Brendan was given only 10 days to write the JavaScript language and get it into Netscape. Date handling is a fundamental part of almost all programming languages, and JavaScript had to have it. That said, it’s a complex problem domain and there was a short timeline. Brendan, under orders to “make it like Java” copied the date object from the existing, infant, java.Util.Date date implementation. This implementation was frankly terrible. In fact, basically all of it’s methods were deprecated and replaced in the Java 1.1 release in 1997. Yet we’re still living with this API 20 years later in the JavaScript programming language. ~ https://maggiepint.com/2017/04/09/fixing-javascript-date-getting-started/


W JS dopiero ostatnio to aktywnie zaczęto rozwiązywać powstaje obiekt Temporal obok Date bez jego raka.

Zaloguj się aby komentować