<commit_before>// Utility methods for relative time ago

Date.months = I18n.translations.date.month_names.compact();
Date.weekdays = I18n.translations.calendar.abbr_weekdays;
Date.firstDayOfWeek = "sunday";

document.on("dom:loaded", function() {
  if(!my_user) { return; }
  Date.firstDayOfWeek = my_user.first_day_of_week;<commit_msg>fix date picker when weeks start on monday<commit_after>// Utility methods for relative time ago

Date.months = I18n.translations.date.month_names.compact();
Date.weekdays = I18n.translations.calendar.abbr_weekdays;
Date.firstDayOfWeek = "sunday";

document.on("dom:loaded", function() {
  if(!my_user) { return; }
  Date.firstDayOfWeek = my_user.first_day_of_week;
  Date.first_day_of_week = my_user.first_day_of_week == 'sunday' ? 0 : 1;
{'fraction_non_alphanumeric': 0.12645161290322582, 'fraction_numerical': 0.012903225806451613, 'mean_word_length': 5.867256637168142, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5495444', 'n_tokens_mistral': 288, 'n_tokens_neox': 271, 'n_words': 49}