Vladimir Yakovlev

Results 4 comments of Vladimir Yakovlev

I used this example for testing. Put it in project folder and npm run build. https://gist.github.com/nagos/4e38f883a1e9c90cee0476313e6c6dce Location set to San Francisco ![san-francisco](https://user-images.githubusercontent.com/183965/102919463-f4a3e980-4499-11eb-8fe4-402a335dfb74.png) Location set to London ![london](https://user-images.githubusercontent.com/183965/102919452-f2418f80-4499-11eb-8e44-de522a6e3388.png)

> However, [date-fns](https://date-fns.org/v2.16.1/docs/startOfWeek) seems to offer a simple but (more importantly) tree-shakable method which does not introduce 4MB of new dependencies, maybe that'd be better suited? startOfWeek from date-fns gives...

Template is shared, but this patch affects only user portion. ``` {{if .ContextUser.IsOrganization}} ... {{else}} ... ``` https://github.com/go-gitea/gitea/pull/21172/files#diff-8020089c79cc846f287e738cf57917d21ec16499df1d994e6c31309d06a1a5afR54 ![packages-org](https://user-images.githubusercontent.com/183965/190968318-bb29e89d-35ac-4eec-ba52-9edd5fe7b93b.png)

Space moved. But this code was copied from profile template, there are same problem. https://github.com/go-gitea/gitea/blob/main/templates/user/profile.tmpl#L117