Make menu id more unique

When calling context.attach(...) in a loop, it could happen that two
menus will share the same ID, as it was based on date.