Skip to content

Instantly share code, notes, and snippets.

View acgerhold's full-sized avatar
🎯
Focusing

Andrew Gerhold acgerhold

🎯
Focusing
View GitHub Profile
@acgerhold
acgerhold / zoned.js
Created January 16, 2024 04:02 — forked from defunkt/zoned.js
Timezones in JavaScript, from http://errtheblog.com/posts/49-a-zoned-defense
var Timezone = {
set : function() {
var date = new Date();
date.setTime(date.getTime() + (1000*24*60*60*1000));
var expires = "; expires=" + date.toGMTString();
document.cookie = "timezone=" + (-date.getTimezoneOffset() * 60) + expires + "; path=/";
}
}
@startuml
'https://plantuml.com/class-diagram
class Users {
- name : String
- address : String
- email : String
}
class UserAccount {