You can use this :

"ami_name": "templatename_{{ isotime | clean_ami_name }}.{{ user 
`magic_reference_date` | clean_ami_name }}",



On Wednesday, 11 May 2016 22:58:37 UTC+8, Sven Kares wrote:
>
> Hi,
>
> does anyone know how to use the isotime formating to get 
>
> templatename_data_time
>
> templatename_{{isotime \"2006-01-02\"}} will bring me the date but how do 
> i get my local time added ?
>
> i tried  templatename_{{isotime \"2006-01-02\"}}_{{isotime 
> \"03\_04\_05\"}} which brings me the UTC time, but i need my local time 
> for this. 
>
> Does anyone know how to get this ?
>
> thanks in advance
>
> best Sven
>
>
>
>

-- 
This mailing list is governed under the HashiCorp Community Guidelines - 
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of 
those guidelines may result in your removal from this mailing list.

GitHub Issues: https://github.com/mitchellh/packer/issues
IRC: #packer-tool on Freenode
--- 
You received this message because you are subscribed to the Google Groups 
"Packer" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/packer-tool/8eacbb4c-8802-4012-a229-afb9819d838b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to