{"id":13414322,"url":"https://github.com/mamuesp/timezones","last_synced_at":"2026-04-17T06:03:46.384Z","repository":{"id":226831140,"uuid":"141050075","full_name":"mamuesp/timezones","owner":"mamuesp","description":"A Mongoose-OS library which will set the cryptic 'sys.tz_spec' from a human readable notation.","archived":false,"fork":false,"pushed_at":"2019-08-18T08:56:17.000Z","size":83,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2024-07-31T21:52:53.065Z","etag":null,"topics":["c","library","miniz","mongoose-os","olson","timezone","tzget","tzset"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/mamuesp.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-07-15T18:43:36.000Z","updated_at":"2023-02-06T09:00:08.000Z","dependencies_parsed_at":"2024-03-10T01:42:32.283Z","dependency_job_id":null,"html_url":"https://github.com/mamuesp/timezones","commit_stats":null,"previous_names":["mamuesp/timezones"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamuesp%2Ftimezones","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamuesp%2Ftimezones/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamuesp%2Ftimezones/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mamuesp%2Ftimezones/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mamuesp","download_url":"https://codeload.github.com/mamuesp/timezones/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":221508993,"owners_count":16834808,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","library","miniz","mongoose-os","olson","timezone","tzget","tzset"],"created_at":"2024-07-30T21:00:19.017Z","updated_at":"2026-04-17T06:03:46.316Z","avatar_url":"https://github.com/mamuesp.png","language":"C","funding_links":[],"categories":["Awesome Mongoose OS [![Awesome](https://awesome.re/badge.svg)](https://awesome.re)"],"sub_categories":["Community Libraries"],"readme":"# Timezones\nTimezone related functions to get the correct settings of the tzData used by Mongoose-OS.\nInspired and based on a blog posting from Pavel Gurenko [\"Getting POSIX TZ strings from Olson tzdata\"](http://www.pavelgurenko.com/2017/05/getting-posix-tz-strings-from-olson.html). The library will only use the current timezone settings and is not able to track changes in timezone data.\n\nThis is a library written in C which works in the background. Just add the lib, set your personal values in `mos.yml` and build the app.\n\n**the setting 'Europe/Berlin' will result in 'CET-1CEST,M3.5.0,M10.5.0/3'**\n\n# Usage:\n\n## 1. Include library in `mos.yml`\n\n## 2. Adapt you settings:\n```YAML\n  - [\"timezone.enable\", true]\n```\nYou may enable/disable the library though it is loaded.\n\n```YAML\n  - [\"timezone.data_path\", \"/mnt\"]\n```\nIf you have mounted an additional file system with e.g. the name `/mnt`, you may move the ZIP file (~5KB) to the file system you entered here. It must by mounted before. This will only be executed after flashing a new version of the firmware. After this action the moved file will be used. Be aware that after moving the archive file you should not change this setting without a new build and flash, because this will lead to an error finding the file. **Be aware: if you want to let the data untouched and let it stay where it is, please set this value to an empty string \"\". In this case, the ZIP file will be in the standard file system**\n```YAML\n  - [\"timezone.arch_file\", \"tz-archive.zip\"]\n```\nThis is the filename of the timezone data archive, **should not be touched**.\n```YAML\n  - [\"timezone.olson\", \"UTC0\"]\n\n```\nHere you may enter the wished timezone in Olson notation you wish to be configured for your device.\nFor example: if you enter `America/New_York`, the `sys.tz_spec` will be set to `EST5EDT,M3.2.0,M11.1.0`\n\t\n## 3. ToDo:\n* comment the source code\n* add update possibilities, because the timezone data changes from time to time\n* implement some functions in MJS for information purposes\n* implement a function which will retrieve the timezone from coordinates (longitude, latitude)\n* implement a function which will get the timezone from a full address (e.g. via GoogleAPI)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamuesp%2Ftimezones","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmamuesp%2Ftimezones","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmamuesp%2Ftimezones/lists"}