# Confused over templates, trying to reformat date outside provided options

**URL:** <https://discourse.joplinapp.org/t/confused-over-templates-trying-to-reformat-date-outside-provided-options/11555>\
**Category:** Support\
**Created:** [11 October 2020 05:51 UTC](https://discourse.joplinapp.org/t/confused-over-templates-trying-to-reformat-date-outside-provided-options/11555 "2020-10-11T05:51:39Z")\
**Posts on this page:** 1\
**Showing post:** 14

<div class="post-metadata">

**Author:** ![james-carroll](https://yyz2.discourse-cdn.com/flex028/user_avatar/discourse.joplinapp.org/james-carroll/32/28844_2.png) [@james-carroll](https://discourse.joplinapp.org/u/james-carroll)\
**Post date:** [27 October 2020 09:32 UTC](https://discourse.joplinapp.org/t/confused-over-templates-trying-to-reformat-date-outside-provided-options/11555/14 "2020-10-27T09:32:23Z")

</div>

I'm a tad late to responding here but unfortunately this didn't get picked up on my "check how the snap is doing" rounds.

Snaps change the $HOME variable exposed to the apps they run. They're essentially hardcoded to `/home/$USER/snap/$SNAP_PACKAGE_NAME/current/` (Where current is a symlink to the internal revision, so 28 in the posts above). There's ongoing work to make this less hardcoded in the future. Regardless, that means that $HOME right now in the snap would actually be `$HOME/snap/joplin-james-carroll/current/`

Since Joplin writes everything relative to $HOME, the template directory from the perspective of the normal shell would end up being `$HOME/snap/joplin-james-carroll/current/.config/joplin-desktop/templates/`

Aside from being in the different location, I'd expect it to work in the exact same manner as the official appimage would. The Templates folder at `/home/jane/snap/joplin-james-carroll/28/Templates/` is just automatically generated by something else and isn't used at all for the Snap, being symonious with the normal $HOME/templates folder used by various DE's instead.

Tl;Dr $HOME is different from the snaps perspective but everything should work the same relative to it including templates.

---

_[View the full topic](https://discourse.joplinapp.org/t/confused-over-templates-trying-to-reformat-date-outside-provided-options/11555)._
