a-know / Pixela

A service for generating GitHub-like graphs. Record and Track your habits or effort. All by API.
https://pixe.la
402 stars 26 forks source link

Starting day for week #34

Open rebeccastalleymoores opened 5 months ago

rebeccastalleymoores commented 5 months ago

I am a teach-myself-at-home student and I came accross your site as a learning exercise for using post, put and delete requests. I really love this app and I want to continue using it to track my studying as I am fitting it around a busy family so I need to make sure i stay on top of it.

Some people like their week to start on a Sunday and others on a Monday. The data for your graphs uses Sunday as the week start date, and all the statistics are based on this. I would really like my week to start on a Monday but I can't find a parameter than I can change to enable this. Is this something you plan to build into pixela, please?

a-know commented 5 months ago

@rebeccastalleymoores Thank you for using Pixela and your interesting opinion!

yes, the current Pixela calendar starts on Monday, which is my preferred specification. In other words, at this time this is not an option or something that can be changed.

However, your opinion is plausible and I would like to consider about whether it is possible to implement it.

If you find anything else, please feel free to let me know at any time. Thanks!

rebeccastalleymoores commented 4 months ago

Hello,

It is interesting that you say the week starts on the Monday, because mine definitely starts on the Sunday which is annoying to me, as I want it to start on the Monday. I like to count my study hours Monday to Sunday:

[cid:775bc030-82dc-4957-bf3a-f80605c692d8] Could this simply be because the tracker is set to UTC whereas I am in BST? I tried to change the timezone to BST but this wasn't an option... I'm not sure this would change the tracker to start the week on a Monday anyway.

Or could it be because my first entry happened to be on a Sunday?

Regards,

Rebecca


From: a-know (Daisuke Inoue) @.> Sent: 03 June 2024 12:20 To: a-know/Pixela @.> Cc: rebeccastalleymoores @.>; Mention @.> Subject: Re: [a-know/Pixela] Starting day for week (Issue #34)

@rebeccastalleymooreshttps://github.com/rebeccastalleymoores Thank you for using Pixela and your interesting opinion!

yes, the current Pixela calendar starts on Monday, which is my preferred specification. In other words, at this time this is not an option or something that can be changed.

However, your opinion is plausible and I would like to consider about whether it is possible to implement it.

If you find anything else, please feel free to let me know at any time. Thanks!

— Reply to this email directly, view it on GitHubhttps://github.com/a-know/Pixela/issues/34#issuecomment-2144939592, or unsubscribehttps://github.com/notifications/unsubscribe-auth/BI4XEWPFZPRYKV5PM4ZWJULZFRGONAVCNFSM6AAAAABIVX7TN6VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDCNBUHEZTSNJZGI. You are receiving this because you were mentioned.

a-know commented 4 months ago

@rebeccastalleymoores Ah sorry, let me clarify:

Is this correct?

And, you can specify the timezone as BST. Like below:

curl -X POST https://pixe.la/v1/users/testusername/graphs -H 'X-USER-TOKEN:thisissecret' -d '{"id":"test-graph","name":"graph-name","unit":"commit","type":"int","color":"shibafu","timezone":"Europe/London"}'

plz see also: https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#LONDON